Fix possible buffer overflow in 'va' function

This commit is contained in:
Indev 2024-04-13 21:55:22 +03:00
parent 44b4a68528
commit b70375618b

View file

@ -1594,7 +1594,7 @@ char *va(const char *format, ...)
static char string[1024];
va_start(argptr, format);
vsprintf(string, format, argptr);
vsnprintf(string, 1024, format, argptr);
va_end(argptr);
return string;