diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-17 00:36:53 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-17 00:36:53 +0100 |
commit | ca0edc53956ecd493055ba1625754ee75d58a9c7 (patch) | |
tree | cfec82a49afdb486ea191690a0c6b4baf018e342 /conf/cf-lex.l | |
parent | 99278e10421a2e6703e77f91e6ef436eaf660405 (diff) | |
download | bird-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.l | 2 |
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; } |