# HG changeset patch # User rubidium # Date 2009-04-06 10:05:36 # Node ID 1e0d3de05f313eb9af9794f915e029e7f817dfe4 # Parent 8dbc3c7df3bd3ad025c4ebf4b768702f2a76c41e (svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary. diff --git a/src/string.cpp b/src/string.cpp --- a/src/string.cpp +++ b/src/string.cpp @@ -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)); }