From f0ad02d6eef99312a3ee633b27fccf66119c7f58 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 28 Feb 2023 09:39:15 +0100 Subject: [PATCH] Fix parsing options from string, doh --- gc-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc-options.c b/gc-options.c index 77373b170..076c2700f 100644 --- a/gc-options.c +++ b/gc-options.c @@ -147,7 +147,7 @@ static int is_value_end(char c) { return c == '\0' || c == ','; } static char* read_token(char *p, int (*is_tok)(char c), int (*is_end)(char c), char *delim) { char c; - for (c = *p; is_tok(c); p++); + for (c = *p; is_tok(c); c = *++p); if (!is_end(c)) return NULL; *delim = c; *p = '\0';