(svn r26506) -Codechange: replace most of vsnprintf with vseprintf

This commit is contained in:
rubidium
2014-04-24 19:51:45 +00:00
parent fad2d3c709
commit e61fe21237
14 changed files with 25 additions and 20 deletions

View File

@@ -93,7 +93,7 @@ void CDECL usererror(const char *s, ...)
char buf[512];
va_start(va, s);
vsnprintf(buf, lengthof(buf), s, va);
vseprintf(buf, lastof(buf), s, va);
va_end(va);
ShowOSErrorBox(buf, false);
@@ -113,7 +113,7 @@ void CDECL error(const char *s, ...)
char buf[512];
va_start(va, s);
vsnprintf(buf, lengthof(buf), s, va);
vseprintf(buf, lastof(buf), s, va);
va_end(va);
ShowOSErrorBox(buf, true);
@@ -132,7 +132,7 @@ void CDECL ShowInfoF(const char *str, ...)
va_list va;
char buf[1024];
va_start(va, str);
vsnprintf(buf, lengthof(buf), str, va);
vseprintf(buf, lastof(buf), str, va);
va_end(va);
ShowInfo(buf);
}