mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-22 05:02:00 +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
5c4c5b1247
commit
2c025af8cd
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…
Add table
Add a link
Reference in a new issue