From b858b600e46f4a25ddc9fb980e5a73ca5aa2690f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 27 Jan 2010 02:16:51 +0100 Subject: [PATCH] fix quoted parser --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 7c393535..c7b2ca85 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 == '\"') -- 2.39.5