From 6ec317e30da221c00ea451dd4679d240bf14c172 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 26 May 2010 16:43:22 +1200 Subject: [PATCH] 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. --- lib/rfc1738.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.47.2