Fix missing cstuff_sprintf result
This commit is contained in:
parent
db758cd938
commit
6fba6f42a0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue