mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-30 23:12:06 +00:00
Fix possible buffer overflow in 'va' function
This commit is contained in:
parent
44b4a68528
commit
b70375618b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue