diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-08-30 23:26:29 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-08-30 23:26:29 +0000 |
commit | 0606c5f97709f102f5fc84a7659d77db07762db3 (patch) | |
tree | 04f6d30ee804a820c0a14110b0fddf54616db6eb | |
parent | 04fc4656c928d58cdbbc60c605c5036564919ff4 (diff) | |
download | ioquake3-aero-0606c5f97709f102f5fc84a7659d77db07762db3.tar.gz ioquake3-aero-0606c5f97709f102f5fc84a7659d77db07762db3.zip |
fix potential buffer overflow
git-svn-id: svn://svn.icculus.org/quake3/trunk@1141 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/unix/unix_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/unix/unix_main.c b/code/unix/unix_main.c index 31521de..d100a22 100644 --- a/code/unix/unix_main.c +++ b/code/unix/unix_main.c @@ -438,7 +438,7 @@ void Sys_Error( const char *error, ...) 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); |