([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:
Andrew McCallum 1995-07-05 21:19:20 +00:00
parent 5c4c5b1247
commit 2c025af8cd

View file

@ -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];
}