summaryrefslogtreecommitdiff
path: root/src/irmd
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2024-02-26 16:32:35 +0100
committerSander Vrijders <sander@ouroboros.rocks>2024-03-01 08:32:16 +0100
commitafa421a0396a18c7b40d50e8774ba1d8335754d3 (patch)
treeebaa24c9b6dc9bca5c59065d7ff1ed9fab44d925 /src/irmd
parentbb617311f4fc4ece5bf963d3f445e73e09a9cdaa (diff)
downloadouroboros-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>
Diffstat (limited to 'src/irmd')
-rw-r--r--src/irmd/configfile.c2
1 files changed, 1 insertions, 1 deletions
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;