Fixed crash when going past the end of the string

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6730 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2000-06-19 17:09:45 +00:00
parent e0f358eb78
commit c62dc367cd

View file

@ -2817,6 +2817,7 @@ scanRange(NSScanner *scanner, NSCharacterSet* aSet)
{
proposedCharRange.location = length;
proposedCharRange.length = 0;
return proposedCharRange;
}
if (proposedCharRange.length > length - proposedCharRange.location)
{