mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:30:48 +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
30f9db06dc
commit
d6e612f716
1 changed files with 5 additions and 0 deletions
|
@ -200,6 +200,11 @@ _attributesAtIndexEffectiveRange(
|
||||||
|
|
||||||
if (index >= tmpLength)
|
if (index >= tmpLength)
|
||||||
{
|
{
|
||||||
|
if (index == tmpLength)
|
||||||
|
{
|
||||||
|
*foundIndex = tmpLength;
|
||||||
|
return nil;
|
||||||
|
}
|
||||||
[NSException raise: NSRangeException
|
[NSException raise: NSRangeException
|
||||||
format: @"index is out of range in function "
|
format: @"index is out of range in function "
|
||||||
@"_attributesAtIndexEffectiveRange()"];
|
@"_attributesAtIndexEffectiveRange()"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue