cluster/ec: variable-length array (VLA) declaration clang fix

Problem: variable-length array size becomes zero

Modified array size to size+1 while declaring

Updates: bz#1622665

Change-Id: I98ee8447c87f37c36c49f50058292e8c1757a1f9
Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
This commit is contained in:
Sheetal Pamecha 2018-09-24 16:37:51 +05:30 committed by Amar Tumballi
parent 5ad31b5b17
commit 064b24900e

View File

@ -944,7 +944,7 @@ ec_code_cpu_check(uint32_t idx, char *list, uint32_t count)
{
ec_code_gen_t *gen;
char **ptr;
char *table[count];
char *table[count + 1];
uint32_t i;
for (i = 0; i < count; i++) {