diff options
author | rubidium <rubidium@openttd.org> | 2014-04-24 19:51:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-24 19:51:45 +0000 |
commit | e61fe2123728dd4cd2eba3ed628905b337ddff19 (patch) | |
tree | aedd5865dbb78dc700d89d3f9478c73d90bcaf60 /src/newgrf.cpp | |
parent | fad2d3c709a6d468024284d9e6b7830f7c62e917 (diff) | |
download | openttd-e61fe2123728dd4cd2eba3ed628905b337ddff19.tar.xz |
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 90fd24bf1..079c12162 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -377,7 +377,7 @@ void CDECL grfmsg(int severity, const char *str, ...) va_list va; va_start(va, str); - vsnprintf(buf, sizeof(buf), str, va); + vseprintf(buf, lastof(buf), str, va); va_end(va); DEBUG(grf, severity, "[%s:%d] %s", _cur.grfconfig->filename, _cur.nfo_line, buf); |