Minor range check fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-10 14:51:12 +00:00
parent 772456c67b
commit 8584c46545

View file

@ -2041,7 +2041,10 @@ static BOOL snuggleStart(NSString *t)
isEqual: @",..."])
{
pos += 4;
c = [tmp characterAtIndex: pos];
if (pos < ePos)
{
c = [tmp characterAtIndex: pos];
}
}
if (pos > 1 && (pos == ePos || c == ',' || c == '.' || c == ';'))
{