Commit c5dc9d29 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Add proper casts to avoid signed vs. unsigned mismatches in

strmake().
parent d6f746de
......@@ -79,8 +79,8 @@ char *strmake(const char *fmt, ...)
va_start(ap, fmt);
n = vsnprintf (p, size, fmt, ap);
va_end(ap);
if (n > -1 && n < size) return p;
size = min( size*2, n+1 );
if (n > -1 && (size_t)n < size) return p;
size = min( size*2, (size_t)n+1 );
p = xrealloc (p, size);
}
}
......
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