diff --git a/cStuff/string.c b/cStuff/string.c index 446c8e1..67c956d 100644 --- a/cStuff/string.c +++ b/cStuff/string.c @@ -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;