From: Christos Tsantilas Date: Thu, 29 Aug 2013 10:22:43 +0000 (+0300) Subject: Fix configuration file parsing bugs, related to quoted strings X-Git-Tag: SQUID_3_5_0_1~652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a59fd1dff82d7ac8c57d890ca30a26c83fc54f52;p=thirdparty%2Fsquid.git Fix configuration file parsing bugs, related to quoted strings Try to fix 'comparison between signed and unsigned integer expression' compiler warning. --- diff --git a/src/ConfigParser.cc b/src/ConfigParser.cc index c3b49079a4..e68a977a1c 100644 --- a/src/ConfigParser.cc +++ b/src/ConfigParser.cc @@ -188,7 +188,7 @@ ConfigParser::UnQuote(const char *token, const char **next) const char *s = token + 1; char *d = UnQuoted; /* scan until the end of the quoted string, handling escape sequences*/ - while (*s && *s != quoteChar && !errorStr && (d - UnQuoted) < sizeof(UnQuoted)) { + while (*s && *s != quoteChar && !errorStr && (size_t)(d - UnQuoted) < sizeof(UnQuoted)) { if (*s == '\\') { s++; switch (*s) {