Commit 84a6f415 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Use result of vsnprintf

parent db6cabd0
......@@ -32,7 +32,8 @@ QCString &QCString::sprintf( const char *format, ... )
int l = length();
if (l<minlen) { resize(minlen); l=minlen; }
int n=vsnprintf( data(), l, format, ap);
resize(qstrlen(data())+1);
if (n<0) n=l;
resize(n+1);
va_end( ap );
return *this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment