Commits

Richard Goedeken committed a10c576

string safety for DebugMessage

Comments (0)

Files changed (1)

 
 void DebugMessage(int level, const char *message, ...)
 {
-  char msgbuf[256];
+  char msgbuf[1024];
   va_list args;
 
   va_start(args, message);
-  vsprintf(msgbuf, message, args);
+  vsnprintf(msgbuf, 1024, message, args);
 
   DebugCallback("UI-Console", level, msgbuf);