Fix parsing of octal escape sequences.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17863 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-10-14 15:38:31 +00:00
parent ed86931bea
commit 5e2fc3e933
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-10-14 Bruno Haible <bruno@clisp.org>
* Source/NSString.m (parseQuotedString): Fix interpretation of
octal escape sequences.
2003-10-14 Richard Frith-Macdonald <rfm@gnu.org>
* GSPrivate.h: New macros to aid with appropriate use of stack

View file

@ -4614,7 +4614,7 @@ static inline id parseQuotedString(pldata* pld)
{
if (escaped == 1 && c >= '0' && c <= '7')
{
chars[k] = 0;
chars[k] = c - '0';
hex = NO;
escaped++;
}