]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2899: Restore lost rfc1738_unescape() data type
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 04:43:22 +0000 (16:43 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 26 May 2010 04:43:22 +0000 (16:43 +1200)
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.

lib/rfc1738.c

index b5107101dd1c5650d32a7e88bb77c4467e101c4e..3420ed8be8e13af8490ae47c69f943cd1eeec063 100644 (file)
@@ -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 */