]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_linux.c
Mostly [v]sprintf -> [v]snprintf replacements, and a couple of other fixes regarding...
[xonotic/darkplaces.git] / sys_linux.c
index 084eb0402cb7ad0b0112c3f85aa5f63ab0b92a62..728ff5fd57bde6bdc2f91bbefa569d1e9bd07c95 100644 (file)
@@ -43,7 +43,7 @@ void Sys_Error (const char *error, ...)
 #endif
 
        va_start (argptr,error);
-       vsprintf (string,error,argptr);
+       vsnprintf (string, sizeof (string), error, argptr);
        va_end (argptr);
        fprintf(stderr, "Error: %s\n", string);