Commit eecde311 authored by Ken Self's avatar Ken Self Committed by Rémi Denis-Courmont
Browse files

vasprintf: stop HEAP exceptions

On Win32, vsnprintf() and vsprintf() are formatting certain things
differently, e.g. "%p". We need to use the same implementation
throughout our vasprintf() replacement.
Signed-off-by: default avatarRémi Denis-Courmont <>
parent d894b1b5
......@@ -50,7 +50,7 @@ static inline int vasprintf (char **strp, const char *fmt, va_list ap)
if (res == NULL)
return -1;
*strp = res;
return vsprintf (res, fmt, ap);
return vsnprintf (res, len, fmt, ap);
/* HACK: vsnprintf in the WinCE API behaves like
* the one in glibc 2.0 and doesn't return the number of characters
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment