From b5662b2906fabfdc54e1245592fe0d2988ce57f8 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 5 Mar 2020 10:22:34 +1100 Subject: [PATCH] Fix test_strconv_utf_8_next array size --- test/c/std/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/c/std/json.c b/test/c/std/json.c index b89525c7..451d8a47 100644 --- a/test/c/std/json.c +++ b/test/c/std/json.c @@ -210,7 +210,7 @@ test_strconv_utf_8_next() { // Special case the "\x00" string, which is valid UTF-8 but its strlen is // zero, not one. - uint8_t the_nul_byte[0]; + uint8_t the_nul_byte[1]; the_nul_byte[0] = '\x00'; struct {