From dac8a746a7f80b50834e750927335d8d1a00c1c1 Mon Sep 17 00:00:00 2001 From: thilo Date: Tue, 25 Mar 2008 21:36:09 +0000 Subject: - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell. - Remove all calls to vsprintf in the engine and gamecode and replace them with calls to vsnprintf. git-svn-id: svn://svn.icculus.org/quake3/trunk@1277 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/ui/ui_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/ui/ui_shared.c') diff --git a/code/ui/ui_shared.c b/code/ui/ui_shared.c index d2593fd..3b2ac7d 100644 --- a/code/ui/ui_shared.c +++ b/code/ui/ui_shared.c @@ -258,7 +258,7 @@ void PC_SourceWarning(int handle, char *format, ...) { static char string[4096]; va_start (argptr, format); - vsprintf (string, format, argptr); + Q_vsnprintf (string, sizeof(string), format, argptr); va_end (argptr); filename[0] = '\0'; @@ -280,7 +280,7 @@ void PC_SourceError(int handle, char *format, ...) { static char string[4096]; va_start (argptr, format); - vsprintf (string, format, argptr); + Q_vsnprintf (string, sizeof(string), format, argptr); va_end (argptr); filename[0] = '\0'; -- cgit v1.2.3