Use >= for check

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/freeze-1_0_0@9489 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-03-24 02:28:34 +00:00
parent 5a59f064f9
commit a197fc84f1

View file

@ -1536,7 +1536,7 @@ failure:
unsigned size = [self length];
unsigned need = NSMaxRange(aRange);
if (aRange.location > size)
if (aRange.location >= size)
{
[NSException raise: NSRangeException
format: @"location bad in replaceByteInRange:withBytes:"];