Fix assignment of 'found' in %z handling.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16392 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-04-08 13:41:26 +00:00
parent c52591b580
commit 226fdc69b6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-04-08 15:37 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCalendarDate.m (-initWithString:calendarFormat:locale:):
Fix assignment of 'found' in %z handling.
2003-04-07 13:21 Alexander Malmberg <alexander@malmberg.org>
* configure.ac: Link directly to the foreign function interfaces

View file

@ -1043,7 +1043,7 @@ static inline int getDigits(const char *from, char *to, int limit)
sign = -1;
sourceIdx++;
}
found += getDigits(&source[sourceIdx], tmpStr, 4);
found = getDigits(&source[sourceIdx], tmpStr, 4);
if (found > 0)
{
sourceIdx += found;