summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-23 20:49:55 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-02-23 20:49:55 (GMT)
commit448b28836eb910f95e2f1903b4dea5eb8548e424 (patch)
tree4163d92b8a5b2126fe8413cc21df8eb3f247dbfa /src/code.l
parent067ee3cfc7a79acd42cedb3f89713b9ed5f47f93 (diff)
downloadDoxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.zip
Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.gz
Doxygen-448b28836eb910f95e2f1903b4dea5eb8548e424.tar.bz2
Doxygen-1.3-rc3-20030223
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index 63fccbd..4a2b80a 100644
--- a/src/code.l
+++ b/src/code.l
@@ -1389,8 +1389,8 @@ TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"short"|"signed"|"unsigned"
}
<Body>"("{B}*("*"{B}*)*{SCOPENAME}*{B}*")"/{B}* { // (*p)->func()
g_code->codify(yytext);
- int s=0;while (!isId(yytext[s])) s++;
- int e=yyleng-1;while (!isId(yytext[e])) e--;
+ int s=0;while (s<yyleng && !isId(yytext[s])) s++;
+ int e=yyleng-1;while (e>=0 && !isId(yytext[e])) e--;
QCString varname = ((QCString)yytext).mid(s,e-s+1);
addType();
g_name=varname;