Skip to content
Snippets Groups Projects
Commit c5dc9d29 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard
Browse files

Add proper casts to avoid signed vs. unsigned mismatches in

strmake().
parent d6f746de
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment