mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Fix for parsing timezone names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24138 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
370df024a7
commit
c68b761cfc
2 changed files with 6 additions and 2 deletions
|
@ -1183,8 +1183,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
|
|||
case 'Z':
|
||||
for (tmpIdx = sourceIdx; tmpIdx < sourceLen; tmpIdx++)
|
||||
{
|
||||
if (isalpha(source[tmpIdx]) || source[tmpIdx] == '-'
|
||||
|| source[tmpIdx] == '+')
|
||||
if (!isspace(source[tmpIdx]))
|
||||
{
|
||||
tmpStr[tmpIdx - sourceIdx] = source[tmpIdx];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue