aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Miles <wmiles@sgl.com>2015-01-09 19:34:26 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-01-22 12:53:41 -0600
commitcddb4aad08615420320f75050042d946b18d2bb5 (patch)
treec36906008f1d783d96d674a706e52e61f6899653
parent3c5dc0ec7774a72e243da43ac5180ea36a311ad8 (diff)
Fix off-by-one error in --test argument printout in start-stop-daemon.
Fixes #34.
-rw-r--r--src/rc/start-stop-daemon.c2
1 files changed, 1 insertions, 1 deletions
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();