Fixed a bug in the way package names are parsed.

If package keyword and the package names were on separate lines, the
parser would read past the end of the line.


git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@807 c5d04d22-be80-434c-894e-aa346cc9e8e8
This commit is contained in:
perlguy0 2013-12-16 05:50:55 +00:00
parent 1634a5f44a
commit 6f1f16c3ca
1 changed files with 1 additions and 1 deletions

2
perl.c
View File

@ -355,7 +355,7 @@ static void findPerlTags (void)
vStringClear (package);
while (isspace (*cp))
cp++;
while ((int) *cp != ';' && !isspace ((int) *cp))
while (*cp && (int) *cp != ';' && !isspace ((int) *cp))
{
vStringPut (package, (int) *cp);
cp++;