Use snprintf
This commit is contained in:
@@ -140,7 +140,7 @@ int debugPrint(const char* format, ...)
|
||||
|
||||
if (gDebugPrintProc != NULL) {
|
||||
char string[260];
|
||||
vsprintf(string, format, args);
|
||||
vsnprintf(string, sizeof(string), format, args);
|
||||
|
||||
rc = gDebugPrintProc(string);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user