mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-08 04:18:15 +00:00
Fix warnings in raylib for MSVC (#3004)
This commit is contained in:
@@ -145,7 +145,7 @@ void TraceLog(int logType, const char *text, ...)
|
||||
default: break;
|
||||
}
|
||||
|
||||
unsigned int textSize = strlen(text);
|
||||
unsigned int textSize = (unsigned int)strlen(text);
|
||||
memcpy(buffer + strlen(buffer), text, (textSize < (MAX_TRACELOG_MSG_LENGTH - 12))? textSize : (MAX_TRACELOG_MSG_LENGTH - 12));
|
||||
strcat(buffer, "\n");
|
||||
vprintf(buffer, args);
|
||||
|
Reference in New Issue
Block a user