mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
|
@ -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…
Add table
Add a link
Reference in a new issue