summaryrefslogtreecommitdiff
path: root/src/strv.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-07 20:58:41 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-07 20:58:41 +0200
commitf60f22dfbb8cfa0eb55d1896db0e4c3f7d3cfacb (patch)
tree281e6403566756a06a47599067b296446e9257d0 /src/strv.c
parent6febfd0d4bdf7519e119149b8d8ec03c210aed1d (diff)
util: use quoted word parsing where applicable
Diffstat (limited to 'src/strv.c')
-rw-r--r--src/strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strv.c b/src/strv.c
index 01464e1e33..a66369602b 100644
--- a/src/strv.c
+++ b/src/strv.c
@@ -264,7 +264,7 @@ char **strv_split_quoted(const char *s) {
i = 0;
FOREACH_WORD_QUOTED(w, l, s, state)
- if (!(r[i++] = strndup(w, l))) {
+ if (!(r[i++] = cunescape_length(w, l))) {
strv_free(r);
return NULL;
}