* Use snprintf (in vasprintf) to determine the size of the string we're about to construct
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2807 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
be25c4901b
commit
1bd1483944
|
@ -28,7 +28,7 @@ int vasprintf(char** strp, const char* format, va_list ap)
|
|||
int count;
|
||||
|
||||
// Find out how long the resulting string is
|
||||
count = _vscprintf(format, ap);
|
||||
count = snprintf(NULL, 0, format, ap);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue