Bug 5146 - Remove last of warnings under gcc 4.6.1 for Linux, patch by q3urt.undead@gmail.com

This commit is contained in:
Thilo Schulz 2011-08-05 13:33:15 +00:00
parent c1b3b6f0be
commit 52aed503b5
7 changed files with 22 additions and 30 deletions

View file

@ -813,10 +813,9 @@ char *strsave(const char *str) {
char *stringf(const char *fmt, ...) {
char buf[1024];
va_list ap;
int n;
va_start(ap, fmt);
n = vsprintf(buf, fmt, ap);
vsprintf(buf, fmt, ap);
va_end(ap);
return strsave(buf);
}