Changeset - r11585:1e0d3de05f31
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-04-06 10:05:36
rubidium@openttd.org
(svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/string.cpp
Show inline comments
 
@@ -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));
 
}
 

	
0 comments (0 inline, 0 general)