mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Allow for quoted numeric/date values in property list.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22642 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32fedc1510
commit
d4a9748337
2 changed files with 15 additions and 0 deletions
|
@ -711,6 +711,16 @@ static id parsePlItem(pldata* pld)
|
|||
unsigned char type = *ptr++;
|
||||
|
||||
len--;
|
||||
// Allow for quoted values.
|
||||
if (ptr[0] == '\'' && len > 1)
|
||||
{
|
||||
len--;
|
||||
ptr++;
|
||||
if (ptr[len - 1] == '\'')
|
||||
{
|
||||
len--;
|
||||
}
|
||||
}
|
||||
if (type == 'I')
|
||||
{
|
||||
char buf[len+1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue