commit | b5662b2906fabfdc54e1245592fe0d2988ce57f8 | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Thu Mar 05 10:22:34 2020 +1100 |
committer | Nigel Tao <nigeltao@golang.org> | Thu Mar 05 10:22:34 2020 +1100 |
tree | 5fe6a31b7c9127ee6171a02af9e4d6f2bc85521b | |
parent | 2178dcd4da37ff0f3ce7fa022ca548effa76b77b [diff] |
Fix test_strconv_utf_8_next array size
diff --git a/test/c/std/json.c b/test/c/std/json.c index b89525c..451d8a4 100644 --- a/test/c/std/json.c +++ b/test/c/std/json.c
@@ -210,7 +210,7 @@ // 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 {