diff --git a/examples/print.cpp b/examples/print.cpp index 08b5e90f0..3ae8d5d92 100644 --- a/examples/print.cpp +++ b/examples/print.cpp @@ -272,7 +272,7 @@ void print(char const* buf) bool reverse = false; SetConsoleTextAttribute(out, current_attributes); - char* start = buf; + char const* start = buf; DWORD written; while (*buf != 0) {