mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-04 02:20:48 +00:00
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:
parent
aa58e8c4ca
commit
fbad4fe85f
2 changed files with 6 additions and 2 deletions
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue