Fix error unescaping uppercase hex digits

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22832 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-04-27 09:49:13 +00:00
parent aa58e8c4ca
commit fbad4fe85f
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2006-04-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSURL.m: Fix error unescaping uppercase hex digits.
2006-04-26 Saso Kiselkov 2006-04-26 Saso Kiselkov
* Headers/Foundation/NSException.h: Support native exceptions. * Headers/Foundation/NSException.h: Support native exceptions.

View file

@ -410,7 +410,7 @@ static void unescape(const char *from, char * to)
{ {
c = *from - '0'; c = *from - '0';
} }
else if (*from <= 'A') else if (*from <= 'F')
{ {
c = *from - 'A' + 10; c = *from - 'A' + 10;
} }
@ -433,7 +433,7 @@ static void unescape(const char *from, char * to)
{ {
c |= *from - '0'; c |= *from - '0';
} }
else if (*from <= 'A') else if (*from <= 'F')
{ {
c |= *from - 'A' + 10; c |= *from - 'A' + 10;
} }