Fix missing cstuff_sprintf result

This commit is contained in:
Ilja Kartašov 2019-04-25 13:53:32 +02:00
parent db758cd938
commit 6fba6f42a0
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ cstuff_vsprintf(char **out, const char *format, va_list args)
if (!(s = malloc(result + 1)))
return -1;
*out = s;
result = vsnprintf(s, result+1, format, args);
return result;