From 00585c403abf45ac15b53176262aee4b05641f23 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Thu, 7 Mar 2024 21:44:45 +0100 Subject: json.c: use VLA notation Signed-off-by: Anna (navi) Figueiredo Gomes --- include/json.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/json.h') diff --git a/include/json.h b/include/json.h index 5245115..9cc5bd1 100644 --- a/include/json.h +++ b/include/json.h @@ -46,7 +46,7 @@ enum json_parse_result { }; struct json *json_parse(const char *str); -struct json *json_parse_len(const char *str, size_t size); +struct json *json_parse_len(size_t size, const char str[size]); struct json *json_new(void); -- cgit v1.2.3