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/textbuf.cpp | |
parent | fad2d3c709a6d468024284d9e6b7830f7c62e917 (diff) | |
download | openttd-e61fe2123728dd4cd2eba3ed628905b337ddff19.tar.xz |
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
Diffstat (limited to 'src/textbuf.cpp')
-rw-r--r-- | src/textbuf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textbuf.cpp b/src/textbuf.cpp index c11e3c1bf..116d60ba8 100644 --- a/src/textbuf.cpp +++ b/src/textbuf.cpp @@ -419,7 +419,7 @@ void Textbuf::Print(const char *format, ...) { va_list va; va_start(va, format); - vsnprintf(this->buf, this->max_bytes, format, va); + vseprintf(this->buf, &this->buf[this->max_bytes - 1], format, va); va_end(va); this->UpdateSize(); } |