From 9f3cc391a2c10a9b959db40fda2ef37cc190be02 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Sun, 9 Apr 2006 23:24:37 +0000 Subject: [PATCH] Little bug in tinyhalt causing it not to recognize when called as reboot. --- commands/reboot/tinyhalt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/reboot/tinyhalt.c b/commands/reboot/tinyhalt.c index b0f61e659..9ae91eba3 100755 --- a/commands/reboot/tinyhalt.c +++ b/commands/reboot/tinyhalt.c @@ -25,7 +25,7 @@ int main(int argc, char **argv) execv("/usr/bin/halt", argv); #endif - if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else argv++; + if ((prog = strrchr(*argv,'/')) == nil) prog= argv[0]; else prog++; sleep(2); /* Not too fast. */ -- 2.44.0