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:
alexm 2003-04-08 13:41:26 +00:00
parent 6ed6ed9a42
commit daf9c35f42
2 changed files with 6 additions and 1 deletions

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;