X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fh2ext.c;h=13366df7979ce79e8857ca46a438bb16f38b7af3;hb=17d04acb0a5885b60d12d5c782d8b1af897c22d7;hp=84fce773ba8f9bc8a70dddeea53ae6bbc2ac8c28;hpb=6e8c9fef3c41764387d7782c275476f980ebd048;p=util-vserver.git diff --git a/src/h2ext.c b/src/h2ext.c index 84fce77..13366df 100644 --- a/src/h2ext.c +++ b/src/h2ext.c @@ -228,7 +228,7 @@ load_description(const char *file, file_format_t **head) *buf = '\0'; while (1) { - if ((eol = strchr(buf, '\n')) == NULL && (end - buf) < (sizeof(buf) - 1)) { + if ((eol = strchr(buf, '\n')) == NULL && (end - buf) < (signed) (sizeof(buf) - 1)) { bytes_read = Eread(fd, end, sizeof(buf) - 1 - (end - buf)); /* EOF, implicit newline */ if (bytes_read == 0) {