]> Zhao Yanbai Git Server - minix.git/commitdiff
Little bug in tinyhalt causing it not to recognize when called as reboot.
authorBen Gras <ben@minix3.org>
Sun, 9 Apr 2006 23:24:37 +0000 (23:24 +0000)
committerBen Gras <ben@minix3.org>
Sun, 9 Apr 2006 23:24:37 +0000 (23:24 +0000)
commands/reboot/tinyhalt.c

index b0f61e65918f52b39d0c251d57a6d441d208258f..9ae91eba35750b6f410b52270d67f03b7fd8f006 100755 (executable)
@@ -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. */