Skip to content

Commit 1a5ea93

Browse files
authored
Update fuzz.c for mg_commalist -> mg_span
1 parent e4bfb2b commit 1a5ea93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fuzz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
7575
mg_globmatch((char *) data, size, (char *) data, size);
7676

7777
struct mg_str k, v, s = mg_str_n((char *) data, size);
78-
while (mg_commalist(&s, &k, &v)) k.len = v.len = 0;
78+
while (mg_span(s, &k, &v, ',')) k.len = v.len = 0;
7979

8080
int n;
8181
mg_json_get(mg_str_n((char *) data, size), "$", &n);

0 commit comments

Comments
 (0)