REVIEWED: TextFormat() #1626

This commit is contained in:
Ray 2021-03-03 19:55:09 +01:00
parent c938d71d15
commit ca22a87949

View File

@ -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