summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-14 20:10:21 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-14 20:12:13 +0100
commita2ea993f50f787ad0087babe381b59c692dd9cbe (patch)
treeea1e7b3132fd1237b6aeb7697a4252c078fd7b38
parentc4bb24020be0e95075e67a55348c8b74799f9f07 (diff)
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
-rw-r--r--src/lib/ecore/efl_core_command_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore/efl_core_command_line.c b/src/lib/ecore/efl_core_command_line.c
index 74ae690c26..24cab90b0e 100644
--- a/src/lib/ecore/efl_core_command_line.c
+++ b/src/lib/ecore/efl_core_command_line.c
@@ -214,7 +214,7 @@ _efl_core_command_line_command_array_set(Eo *obj EINA_UNUSED, Efl_Core_Command_L
214 for (i = 0; i < (array ? eina_array_count(array) : 0); ++i) 214 for (i = 0; i < (array ? eina_array_count(array) : 0); ++i)
215 { 215 {
216 char *content = eina_array_data_get(array, i); 216 char *content = eina_array_data_get(array, i);
217 char *param = calloc(1, strlen(content)); 217 char *param = calloc(1, strlen(content) + 1);
218 218
219 if (!param) 219 if (!param)
220 { 220 {