summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-03-04 12:07:58 +1100
committerMaxime Coste <mawww@kakoune.org>2020-03-04 12:08:16 +1100
commit610be9ac20dad2e0a5f76b027ab58b8bdf2a031c (patch)
tree8514ca180d4a5fd727c57c54d88594b452afca7b /src
parentaad46123876e264a4bfa9b08a88a1dda0e05b608 (diff)
Fix invalid memory access in unit-tests
Diffstat (limited to 'src')
-rw-r--r--src/json.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.cc b/src/json.cc
index 82db4576..e50d3e61 100644
--- a/src/json.cc
+++ b/src/json.cc
@@ -178,7 +178,7 @@ UnitTest test_json_parser{[]()
}
{
- String big_nested_array = {"", max_parsing_depth*2+2};
+ String big_nested_array{' ', CharCount{max_parsing_depth*2+2}};
for (size_t i = 0; i < max_parsing_depth+1; i++)
{
big_nested_array[i] = '[';