Range check fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13685 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-05-22 14:08:01 +00:00
parent be5c099357
commit f1ae195f0f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-05-22 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSeq.h: Fix bug matching sequences with zero length range.
2002-05-15 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSLog.m: Altered logging format for compatibility with

View file

@ -329,7 +329,7 @@ GSEQ_STRCOMP(NSString *ss, NSString *os, unsigned mask, NSRange aRange)
[NSException raise: NSRangeException format: @"Invalid location+length."];
oLength = GSEQ_OLEN;
if (sLength - aRange.location == 0)
if (aRange.length == 0)
{
if (oLength == 0)
{