X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=util.c;h=34667e3fc7a6ace461652ec90c285b60bdb47307;hp=32f3402aae7cc95a62c48f3b15965a3de75e48f9;hb=c2e27a85d7a7b8d4ce734c88f9ff1493b87a5789;hpb=188bc1b06879b7fcd56c599e20db0ac87a0da4e3 diff --git a/util.c b/util.c index 32f3402..34667e3 100644 --- a/util.c +++ b/util.c @@ -229,7 +229,7 @@ __must_check __printf_1_2 __malloc char *make_message(const char *fmt, ...) n = vsnprintf(p, size, fmt, ap); va_end(ap); /* If that worked, return the string. */ - if (n > -1 && n < size) + if (n > -1 && (unsigned)n < size) break; /* Else try again with more space. */ if (n > -1) /* glibc 2.1 */