From e20fa8bff9fc7bc1c50fcd7a95dc49235430a2f7 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Sat, 17 Feb 2018 19:49:07 +0000 Subject: [PATCH] Fix typo in string constructon --- src/lib/edi_build_provider_make.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/edi_build_provider_make.c b/src/lib/edi_build_provider_make.c index 2f3854c..d62b7ad 100644 --- a/src/lib/edi_build_provider_make.c +++ b/src/lib/edi_build_provider_make.c @@ -150,9 +150,9 @@ _make_run(const char *path, const char *args) return; } - full_len = strlen(path) + strlen(path); + full_len = strlen(path) + strlen(args) + 1; full_cmd = malloc(sizeof(char) * (full_len + 1)); - snprintf(full_cmd, full_len + 2, "%s %s", path, args); + snprintf(full_cmd, full_len + 1, "%s %s", path, args); ecore_exe_pipe_run(full_cmd, ECORE_EXE_PIPE_READ_LINE_BUFFERED | ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_ERROR_LINE_BUFFERED | ECORE_EXE_PIPE_ERROR |