mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
be5c099357
commit
f1ae195f0f
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue