summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-01-16 23:36:53 +0000
committerMartin Mares <mj@ucw.cz>2000-01-16 23:36:53 +0000
commitca0edc53956ecd493055ba1625754ee75d58a9c7 (patch)
treecfec82a49afdb486ea191690a0c6b4baf018e342 /conf
parent99278e10421a2e6703e77f91e6ef436eaf660405 (diff)
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')
-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 954ad6b4..cd6699fd 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;
}