summaryrefslogtreecommitdiffstats
path: root/conf/cf-lex.l
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-17 00:36:53 +0100
committerMartin Mares <mj@ucw.cz>2000-01-17 00:36:53 +0100
commitca0edc53956ecd493055ba1625754ee75d58a9c7 (patch)
treecfec82a49afdb486ea191690a0c6b4baf018e342 /conf/cf-lex.l
parent99278e10421a2e6703e77f91e6ef436eaf660405 (diff)
downloadbird-ca0edc53956ecd493055ba1625754ee75d58a9c7.tar
bird-ca0edc53956ecd493055ba1625754ee75d58a9c7.zip
When a quoted string is encountered, don't forget to copy it to the
config pool before passing it to the parser.
Diffstat (limited to 'conf/cf-lex.l')
-rw-r--r--conf/cf-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 954ad6b..cd6699f 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -144,8 +144,8 @@ WHITE [ \t]
}
["][^"\n]*["] {
- cf_lval.t = yytext+1;
yytext[yyleng-1] = 0;
+ cf_lval.t = cfg_strdup(yytext+1);
return TEXT;
}