diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-07 20:58:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-07 20:58:41 +0200 |
commit | f60f22dfbb8cfa0eb55d1896db0e4c3f7d3cfacb (patch) | |
tree | 281e6403566756a06a47599067b296446e9257d0 /src/conf-parser.c | |
parent | 6febfd0d4bdf7519e119149b8d8ec03c210aed1d (diff) |
util: use quoted word parsing where applicable
Diffstat (limited to 'src/conf-parser.c')
-rw-r--r-- | src/conf-parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |