mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-28 11:10:51 +00:00
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:
parent
0d55588d8a
commit
ced5193b8d
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
2003-10-14 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* GSPrivate.h: New macros to aid with appropriate use of stack
|
* GSPrivate.h: New macros to aid with appropriate use of stack
|
||||||
|
|
|
@ -4614,7 +4614,7 @@ static inline id parseQuotedString(pldata* pld)
|
||||||
{
|
{
|
||||||
if (escaped == 1 && c >= '0' && c <= '7')
|
if (escaped == 1 && c >= '0' && c <= '7')
|
||||||
{
|
{
|
||||||
chars[k] = 0;
|
chars[k] = c - '0';
|
||||||
hex = NO;
|
hex = NO;
|
||||||
escaped++;
|
escaped++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue