r1141 - trunk/code/unix
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Aug 30 19:26:31 EDT 2007
Author: thilo
Date: 2007-08-30 19:26:29 -0400 (Thu, 30 Aug 2007)
New Revision: 1141
Modified:
trunk/code/unix/unix_main.c
Log:
fix potential buffer overflow
Modified: trunk/code/unix/unix_main.c
===================================================================
--- trunk/code/unix/unix_main.c 2007-08-29 18:18:59 UTC (rev 1140)
+++ trunk/code/unix/unix_main.c 2007-08-30 23:26:29 UTC (rev 1141)
@@ -438,7 +438,7 @@
CL_Shutdown ();
va_start (argptr,error);
- vsprintf (string,error,argptr);
+ Q_vsnprintf (string, sizeof(string), error, argptr);
va_end (argptr);
fprintf(stderr, "Sys_Error: %s\n", string);
More information about the quake3-commits
mailing list