------------------------------------------------------------ revno: 12993 revision-id: chtsanti@users.sourceforge.net-20130829102243-q98tw5nh0xyi6cxm parent: chtsanti@users.sourceforge.net-20130829092153-63anu0uit9yp43tc committer: Christos Tsantilas branch nick: trunk timestamp: Thu 2013-08-29 13:22:43 +0300 message: Fix configuration file parsing bugs, related to quoted strings Try to fix 'comparison between signed and unsigned integer expression' compiler warning. ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: chtsanti@users.sourceforge.net-20130829102243-\ # q98tw5nh0xyi6cxm # target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # testament_sha1: 76e3abbb74c0cab2426a88422e5d5ae639c0b16f # timestamp: 2013-08-29 10:53:57 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/ # base_revision_id: chtsanti@users.sourceforge.net-20130829092153-\ # 63anu0uit9yp43tc # # Begin patch === modified file 'src/ConfigParser.cc' --- src/ConfigParser.cc 2013-08-29 09:21:53 +0000 +++ src/ConfigParser.cc 2013-08-29 10:22:43 +0000 @@ -188,7 +188,7 @@ 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) {