Commit ee2ac0d6 authored by Geoffroy Couprie's avatar Geoffroy Couprie

WInCE: fix infinite loop in vasprintf replacement

fixed by Pierre Ynard
parent 7353924f
......@@ -77,8 +77,7 @@ static inline int vasprintf (char **strp, const char *fmt, va_list ap)
}
/* Else try again with more space. */
if (n == -1)
size *= 2; /* twice the old size */
size *= 2; /* twice the old size */
if ((np = (char *) realloc (res, size)) == NULL)
{
......
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