Browse Source

Fix log message format string when compiling in debug mode

Marco Bortolin 4 years ago
parent
commit
b9029c0848
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/StringUtilities.cpp

+ 1 - 1
Source/Core/StringUtilities.cpp

@@ -49,7 +49,7 @@ static int FormatString(String& string, size_t max_size, const char* format, va_
 #ifdef RMLUI_DEBUG
 	if (length == -1)
 	{
-		Log::Message(Log::LT_WARNING, "FormatString: String truncated to %d bytes when processing %s", max_size, format);
+		Log::Message(Log::LT_WARNING, "FormatString: String truncated to %zu bytes when processing %s", max_size, format);
 	}
 #endif