diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2024-02-26 16:32:35 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2024-03-01 08:32:16 +0100 |
commit | afa421a0396a18c7b40d50e8774ba1d8335754d3 (patch) | |
tree | ebaa24c9b6dc9bca5c59065d7ff1ed9fab44d925 | |
parent | bb617311f4fc4ece5bf963d3f445e73e09a9cdaa (diff) | |
download | ouroboros-afa421a0396a18c7b40d50e8774ba1d8335754d3.tar.gz ouroboros-afa421a0396a18c7b40d50e8774ba1d8335754d3.zip |
irmd: Fix parsing arguments in configfile0.21.3
The argc counter was improperly reset before building the arguments
list.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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; |