Revert "test.c: Fix buffer overrun found by coverity"

This reverts commit c866abd842.

The length of this buffer was intentional. This looks like a false
positive.
This commit is contained in:
Max Bruckner 2017-02-07 21:22:40 +01:00
parent 7119a16b5f
commit f09bdef15e

2
test.c
View File

@ -114,7 +114,7 @@ static int print_preallocated(cJSON *root)
}
/* create buffer to fail */
len_fail = strlen(out) + sizeof('\0');
len_fail = strlen(out);
buf_fail = (char*)malloc(len_fail);
if (buf_fail == NULL)
{