From f60f22dfbb8cfa0eb55d1896db0e4c3f7d3cfacb Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Jul 2010 20:58:41 +0200 Subject: util: use quoted word parsing where applicable --- src/conf-parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conf-parser.c') diff --git a/src/conf-parser.c b/src/conf-parser.c index df3584dd04..1cabc0d789 100644 --- a/src/conf-parser.c +++ b/src/conf-parser.c @@ -423,7 +423,7 @@ int config_parse_strv( k = 0; FOREACH_WORD_QUOTED(w, l, rvalue, state) - if (!(n[k++] = strndup(w, l))) + if (!(n[k++] = cunescape_length(w, l))) goto fail; n[k] = NULL; @@ -475,7 +475,7 @@ int config_parse_path_strv( n[k] = (*sv)[k]; FOREACH_WORD_QUOTED(w, l, rvalue, state) { - if (!(n[k] = strndup(w, l))) { + if (!(n[k] = cunescape_length(w, l))) { r = -ENOMEM; goto fail; } -- cgit v1.2.3-54-g00ecf