mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 06:41:12 +00:00
Fix to permit access to end of string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
16eefe44b2
commit
a3d8cbe6a8
1 changed files with 5 additions and 0 deletions
|
@ -200,6 +200,11 @@ _attributesAtIndexEffectiveRange(
|
|||
|
||||
if (index >= tmpLength)
|
||||
{
|
||||
if (index == tmpLength)
|
||||
{
|
||||
*foundIndex = tmpLength;
|
||||
return nil;
|
||||
}
|
||||
[NSException raise: NSRangeException
|
||||
format: @"index is out of range in function "
|
||||
@"_attributesAtIndexEffectiveRange()"];
|
||||
|
|
Loading…
Reference in a new issue