mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-19 17:37:42 -05:00
Change most sprintf to snprintf.
This also includes vsprintf to vsnprintf.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user