mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
sprintf audit.
This commit is contained in:
parent
b34504057c
commit
29970187d7
7 changed files with 8 additions and 7 deletions
|
@ -242,7 +242,7 @@ Qprintf(QFile *file, const char *fmt, ...)
|
|||
(void)vsprintf(buf, fmt, args);
|
||||
#endif
|
||||
va_end(args);
|
||||
ret = strlen(buf); /* some *sprintf don't return the nb of bytes written */
|
||||
ret = strlen(buf); /* some *snprintf don't return the nb of bytes written */
|
||||
if (ret>0)
|
||||
ret=gzwrite(file, buf, (unsigned)ret);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue