([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:
mccallum 1995-07-05 21:19:20 +00:00
parent 0f728306e9
commit eb1a6df11e

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