Use vasprintf not asprintf

This commit is contained in:
jsteube
2016-12-24 00:57:38 +01:00
parent a077a72a4e
commit 9113a57fe6
+1 -1
View File
@@ -104,7 +104,7 @@ void hc_asprintf (char **strp, const char *fmt, ...)
va_list args;
va_start (args, fmt);
int rc __attribute__((unused));
rc = asprintf (strp, fmt, args);
rc = vasprintf (strp, fmt, args);
va_end (args);
}