Do not advance start and get startType if we are at the end anyway.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37134 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2013-09-22 18:49:37 +00:00
parent f33f962c25
commit 78d4babed7
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-09-22 Riccardo Mottola <rm@gnu.org>
* Modules/Parsers/ProjectCenter/PCParser.m
Do not advance start and get startType if we are at the end anyway.
2013-09-21 Riccardo Mottola <rm@gnu.org>
* Modules/Parsers/ProjectCenter/PCParser.h

View file

@ -202,8 +202,13 @@ CodeType codeType(unichar *ch)
(*impInvisible)(_handler, selInvisible, _uchar[start+j]);
}
}
start = i;
startType = codeType(_uchar+start);
/* if we are at the end, we can getting the last stat char anyway
and in any case it would not be valid */
if (end != _length)
{
start = i;
startType = codeType(_uchar+start);
}
}
}
NSLog(@"CodeParser end...");