From: Ben Gras Date: Sun, 9 Apr 2006 23:24:37 +0000 (+0000) Subject: Little bug in tinyhalt causing it not to recognize when called as reboot. X-Git-Tag: v3.1.2a~37 X-Git-Url: http://zhaoyanbai.com/repos/dig.html?a=commitdiff_plain;h=9f3cc391a2c10a9b959db40fda2ef37cc190be02;p=minix.git Little bug in tinyhalt causing it not to recognize when called as reboot. --- 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. */