]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix configuration file parsing bugs, related to quoted strings
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 29 Aug 2013 10:22:43 +0000 (13:22 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 29 Aug 2013 10:22:43 +0000 (13:22 +0300)
Try to fix 'comparison between signed and unsigned integer expression' compiler
warning.

src/ConfigParser.cc

index c3b49079a48ccce7b54d9bd7aa8de01b4f616d1f..e68a977a1c89a94d7e524be1710c366034e2a89a 100644 (file)
@@ -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) {