mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 17:41:05 +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
|
@ -410,7 +410,7 @@ static void unescape(const char *from, char * to)
|
|||
{
|
||||
c = *from - '0';
|
||||
}
|
||||
else if (*from <= 'A')
|
||||
else if (*from <= 'F')
|
||||
{
|
||||
c = *from - 'A' + 10;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ static void unescape(const char *from, char * to)
|
|||
{
|
||||
c |= *from - '0';
|
||||
}
|
||||
else if (*from <= 'A')
|
||||
else if (*from <= 'F')
|
||||
{
|
||||
c |= *from - 'A' + 10;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue