mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 19:06:27 +00:00
REVIEWED: TextFormat() #1626
This commit is contained in:
@@ -1175,7 +1175,7 @@ const char *TextFormat(const char *text, ...)
|
||||
|
||||
va_list args;
|
||||
va_start(args, text);
|
||||
vsprintf(currentBuffer, text, args);
|
||||
vsnprintf(currentBuffer, MAX_TEXT_BUFFER_LENGTH, text, args);
|
||||
va_end(args);
|
||||
|
||||
index += 1; // Move to next buffer for next function call
|
||||
|
Reference in New Issue
Block a user