summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorragge <ragge>2010-04-20 11:20:20 +0000
committerragge <ragge>2010-04-20 11:20:20 +0000
commit609c1660a3a4f087ade0910ab40889d36be1c420 (patch)
tree1a756c73a203ce2191e847563b2a6d606ae4d6f9
parentf80f6bd52cbd0e57206c489bbafc55184b4d9747 (diff)
Forgot to null-terminate yytext. Bug pointed out by Iain Hibbert.
-rw-r--r--token.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/token.c b/token.c
index 05557f2..b38deda 100644
--- a/token.c
+++ b/token.c
@@ -401,6 +401,7 @@ chlit:
if (Cflag && !flslvl && readmac) {
unch(ch);
+ yytext[yyp] = 0;
return CMNT;
}