efl_core_command_line: a +1 was forgotten in order to account \0

this forgotten and the allocated string buffer was too small.
This fixes a valgrind warnings
This commit is contained in:
Marcel Hollerbach 2019-02-14 20:10:21 +01:00
parent c4bb24020b
commit a2ea993f50
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ _efl_core_command_line_command_array_set(Eo *obj EINA_UNUSED, Efl_Core_Command_L
for (i = 0; i < (array ? eina_array_count(array) : 0); ++i)
{
char *content = eina_array_data_get(array, i);
char *param = calloc(1, strlen(content));
char *param = calloc(1, strlen(content) + 1);
if (!param)
{