From daf9c35f425718f292f25a3e4c4ce451d27d8415 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 8 Apr 2003 13:41:26 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/NSCalendarDate.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5c25a60dd..6ebf7a66b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-04-08 15:37 Alexander Malmberg + + * Source/NSCalendarDate.m (-initWithString:calendarFormat:locale:): + Fix assignment of 'found' in %z handling. + 2003-04-07 13:21 Alexander Malmberg * configure.ac: Link directly to the foreign function interfaces diff --git a/Source/NSCalendarDate.m b/Source/NSCalendarDate.m index 429a5dc0b..009b4b86a 100644 --- a/Source/NSCalendarDate.m +++ b/Source/NSCalendarDate.m @@ -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;