summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-01-27 02:16:51 +0100
committerLennart Poettering <lennart@poettering.net>2010-01-27 02:16:51 +0100
commitb858b600e46f4a25ddc9fb980e5a73ca5aa2690f (patch)
tree124235bcdd4dac07c71b1dbc759add0cdb83664e
parentaf5ec5932816fe259c207507ee67ce849787254a (diff)
fix quoted parser
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 7c3935353c..c7b2ca8516 100644
--- a/util.c
+++ b/util.c
@@ -253,7 +253,7 @@ char *split_quoted(const char *c, size_t *l, char **state) {
(*state)++;
} else if (*current == '\"') {
current ++;
- *l = strcspn(current+1, "\"");
+ *l = strcspn(current, "\"");
*state = current+*l;
if (**state == '\"')