Fix for parsing octal and hex escapes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10135 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-06-09 08:52:53 +00:00
parent 2a97b9caa3
commit 11d46ed1ba
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-06-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSString.m: parseQuotedString() ... fix for parsing octal
and hex escape sequences.
2001-06-09 Nicola Pero <n.pero@mi.flashnet.it>
* configure.in (VERSION): Output a message saying that we are

View file

@ -4035,6 +4035,7 @@ static inline id parseQuotedString(pldata* pld)
if (escaped == 10)
{
escaped = 0;
k++;
}
}
else if (c >= '0' && c <= '7')
@ -4045,6 +4046,7 @@ static inline id parseQuotedString(pldata* pld)
if (escaped == 4)
{
escaped = 0;
k++;
}
}
else