diff options
Diffstat (limited to 'src/rc/start-stop-daemon.c')
-rw-r--r-- | src/rc/start-stop-daemon.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 3ee98496..045bad12 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -874,12 +874,11 @@ int start_stop_daemon(int argc, char **argv) opt = 0; for (nav = argv; *nav; nav++) opt++; - nav = xmalloc(sizeof(char *) * (opt + 3)); + nav = xmalloc(sizeof(char *) * (opt + 2)); nav[0] = exec_file; - nav[1] = (char *)"--"; for (i = 0; i < opt; i++) - nav[i + 2] = argv[i]; - nav[i + 2] = '\0'; + nav[i + 1] = argv[i]; + nav[i + 1] = '\0'; argv = nav; exec = exec_file; } |