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 --- src/irmd/configfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/irmd') 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