From 6fba6f42a0eda418ee4cd92b927476eb598bc56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilja=20Karta=C5=A1ov?= Date: Thu, 25 Apr 2019 13:53:32 +0200 Subject: [PATCH] Fix missing cstuff_sprintf result --- cStuff/string.c | 1 + 1 file changed, 1 insertion(+) 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;