From afa421a0396a18c7b40d50e8774ba1d8335754d3 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 26 Feb 2024 16:32:35 +0100 Subject: irmd: Fix parsing arguments in configfile The argc counter was improperly reset before building the arguments list. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- CMakeLists.txt | 2 +- src/irmd/configfile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 397cfdad..c298b981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ include(GNUInstallDirs) set(PACKAGE_VERSION_MAJOR 0) set(PACKAGE_VERSION_MINOR 21) -set(PACKAGE_VERSION_PATCH 2) +set(PACKAGE_VERSION_PATCH 3) set(PACKAGE_NAME "${CMAKE_PROJECT_NAME}") set(PACKAGE_DESCRIPTION "The Ouroboros prototype") diff --git a/src/irmd/configfile.c b/src/irmd/configfile.c index 1537a1cc..688c4ade 100644 --- a/src/irmd/configfile.c +++ b/src/irmd/configfile.c @@ -598,7 +598,7 @@ static int args_to_argv(const char * prog, if ((*argv)[0] == NULL) goto fail_malloc2; - argc++; + argc = 1; if (str == NULL) goto finish; -- cgit v1.2.3