mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
bizzare...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4074 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ddc9183f11
commit
a0acf7ceab
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ int Sys_DebugLog(char *file, char *fmt, ...)
|
||||||
size_t result;
|
size_t result;
|
||||||
|
|
||||||
va_start(argptr, fmt);
|
va_start(argptr, fmt);
|
||||||
_vsnprintf (data,sizeof(data)-1, fmt, argptr);
|
vsnprintf (data,sizeof(data)-1, fmt, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
|
|
||||||
if (strlen(data) >= sizeof(data)-1)
|
if (strlen(data) >= sizeof(data)-1)
|
||||||
|
@ -186,7 +186,7 @@ void Sys_Error (const char *error, ...)
|
||||||
char string[1024];
|
char string[1024];
|
||||||
|
|
||||||
va_start (argptr,error);
|
va_start (argptr,error);
|
||||||
_vsnprintf (string,sizeof(string)-1, error,argptr);
|
vsnprintf (string,sizeof(string)-1, error,argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
printf ("Fatal error: %s\n",string);
|
printf ("Fatal error: %s\n",string);
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ void Sys_Printf (char *fmt, ...)
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
va_start (argptr,fmt);
|
va_start (argptr,fmt);
|
||||||
_vsnprintf (text,sizeof(text)-1, fmt,argptr);
|
vsnprintf (text,sizeof(text)-1, fmt,argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
if (strlen(text) > sizeof(text))
|
if (strlen(text) > sizeof(text))
|
||||||
|
|
Loading…
Reference in a new issue