]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
Mostly [v]sprintf -> [v]snprintf replacements, and a couple of other fixes regarding...
[xonotic/darkplaces.git] / sys_win.c
index d9b013b0bd8471ac2c9d6e882776ae4010c48cbf..d53955d15875311f047a572e095c37fba228c064 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -63,7 +63,7 @@ void Sys_Error (const char *error, ...)
        static int      in_sys_error2 = 0;
 
        va_start (argptr, error);
-       vsprintf (text, error, argptr);
+       vsnprintf (text, sizeof (text), error, argptr);
        va_end (argptr);
 
        // close video so the message box is visible, unless we already tried that