Change most sprintf to snprintf.

This also includes vsprintf to vsnprintf.
This commit is contained in:
C.W. Betts
2024-04-17 18:57:47 -06:00
parent 99f86c5c1f
commit 57078ae4b5
94 changed files with 794 additions and 738 deletions

View File

@@ -50,7 +50,7 @@ void con_raw_Printf(const char *fmt, ...) {
char buffer[1024];
va_list args;
va_start(args, fmt);
vsprintf(buffer, fmt, args);
vsnprintf(buffer, sizeof(buffer), fmt, args);
va_end(args);
con_raw_Puts(0, buffer);
}