summaryrefslogtreecommitdiff
path: root/src/settingsgen
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/settingsgen
parentfad2d3c709a6d468024284d9e6b7830f7c62e917 (diff)
downloadopenttd-e61fe2123728dd4cd2eba3ed628905b337ddff19.tar.xz
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
Diffstat (limited to 'src/settingsgen')
-rw-r--r--src/settingsgen/settingsgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settingsgen/settingsgen.cpp b/src/settingsgen/settingsgen.cpp
index 9f8cc1050..dd92e2627 100644
--- a/src/settingsgen/settingsgen.cpp
+++ b/src/settingsgen/settingsgen.cpp
@@ -42,7 +42,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, "FATAL: %s\n", buf);
exit(1);