From: Amos Jeffries Date: Wed, 26 May 2010 04:43:22 +0000 (+1200) Subject: Bug 2899: Restore lost rfc1738_unescape() data type X-Git-Tag: SQUID_3_0_STABLE26~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ec317e30da221c00ea451dd4679d240bf14c172;p=thirdparty%2Fsquid.git Bug 2899: Restore lost rfc1738_unescape() data type Data type was converted to char from int during recent upgrades. On unix systems char is unsigned making the safety checks fail on build. This reverts the type back to a usable signed int, no logic changes. --- diff --git a/lib/rfc1738.c b/lib/rfc1738.c index b5107101dd..3420ed8be8 100644 --- a/lib/rfc1738.c +++ b/lib/rfc1738.c @@ -203,8 +203,7 @@ rfc1738_unescape(char *s) j++; /* Skip % */ } else { /* decode */ - char v1, v2; - int x; + int v1, v2, x; v1 = fromhex(s[j + 1]); if (v1 < 0) continue; /* non-hex or \0 */