mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +00:00
(svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
static int CDECL vseprintf(char *str, const char *last, const char *format, va_list ap)
|
||||
{
|
||||
if (str >= last) return 0;
|
||||
size_t size = last - str;
|
||||
size_t size = last - str + 1;
|
||||
return min((int)size, vsnprintf(str, size, format, ap));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user