From cddb4aad08615420320f75050042d946b18d2bb5 Mon Sep 17 00:00:00 2001 From: Will Miles Date: Fri, 9 Jan 2015 19:34:26 -0500 Subject: [PATCH] Fix off-by-one error in --test argument printout in start-stop-daemon. Fixes #34. --- src/rc/start-stop-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 6229bbfd..3afbf2e8 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -1075,7 +1075,7 @@ start_stop_daemon(int argc, char **argv) exit (EXIT_SUCCESS); einfon("Would start"); - while (argc-- >= 0) + while (argc-- > 0) printf(" %s", *argv++); printf("\n"); eindent();