mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix failure to terminate loop properly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34085 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d3a44df7f7
commit
58389dd312
1 changed files with 6 additions and 9 deletions
|
@ -5524,15 +5524,12 @@ static NSFileManager *fm = nil;
|
|||
searchRange.location = range.location + byLen;
|
||||
searchRange.length = newEnd - searchRange.location;
|
||||
}
|
||||
if (searchRange.length > 0)
|
||||
{
|
||||
/* We replaced something and now need to scan again.
|
||||
* As we modified the receiver, we must refresh the
|
||||
* method implementation for searching.
|
||||
*/
|
||||
func = GSPrivateRangeOfString(self, replace);
|
||||
range = (*func)(self, replace, opts, searchRange);
|
||||
}
|
||||
/* We replaced something and now need to scan again.
|
||||
* As we modified the receiver, we must refresh the
|
||||
* method implementation for searching.
|
||||
*/
|
||||
func = GSPrivateRangeOfString(self, replace);
|
||||
range = (*func)(self, replace, opts, searchRange);
|
||||
}
|
||||
while (range.length > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue