summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-24 19:51:45 +0000
committerrubidium <rubidium@openttd.org>2014-04-24 19:51:45 +0000
commite61fe2123728dd4cd2eba3ed628905b337ddff19 (patch)
treeaedd5865dbb78dc700d89d3f9478c73d90bcaf60 /src/strgen
parentfad2d3c709a6d468024284d9e6b7830f7c62e917 (diff)
downloadopenttd-e61fe2123728dd4cd2eba3ed628905b337ddff19.tar.xz
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 2fb89f088..4cd2454f4 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -53,7 +53,7 @@ void CDECL strgen_warning(const char *s, ...)
char buf[1024];
va_list va;
va_start(va, s);
- vsnprintf(buf, lengthof(buf), s, va);
+ vseprintf(buf, lastof(buf), s, va);
va_end(va);
fprintf(stderr, LINE_NUM_FMT("warning"), _file, _cur_line, buf);
_warnings++;
@@ -64,7 +64,7 @@ void CDECL strgen_error(const char *s, ...)
char buf[1024];
va_list va;
va_start(va, s);
- vsnprintf(buf, lengthof(buf), s, va);
+ vseprintf(buf, lastof(buf), s, va);
va_end(va);
fprintf(stderr, LINE_NUM_FMT("error"), _file, _cur_line, buf);
_errors++;
@@ -75,7 +75,7 @@ void NORETURN CDECL strgen_fatal(const char *s, ...)
char buf[1024];
va_list va;
va_start(va, s);
- vsnprintf(buf, lengthof(buf), s, va);
+ vseprintf(buf, lastof(buf), s, va);
va_end(va);
fprintf(stderr, LINE_NUM_FMT("FATAL"), _file, _cur_line, buf);
#ifdef _MSC_VER
@@ -89,7 +89,7 @@ void NORETURN CDECL error(const char *s, ...)
char buf[1024];
va_list va;
va_start(va, s);
- vsnprintf(buf, lengthof(buf), s, va);
+ vseprintf(buf, lastof(buf), s, va);
va_end(va);
fprintf(stderr, LINE_NUM_FMT("FATAL"), _file, _cur_line, buf);
#ifdef _MSC_VER