mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
([NSString -getCharacters:range:]): Decrement, not increment in loop.
(Reported by Harmut <benz@sophie-scholl.dbag.ulm.DaimlerBenz.COM>). git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@493 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0f728306e9
commit
eb1a6df11e
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@
|
|||
range: (NSRange)aRange
|
||||
{
|
||||
int i;
|
||||
for (i = aRange.location + aRange.length - 1; i >= aRange.location; i++)
|
||||
for (i = aRange.location + aRange.length - 1; i >= aRange.location; i--)
|
||||
{
|
||||
buffer[i] = [self characterAtIndex:i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue