diff --git a/commands/reboot/shutdown.c b/commands/reboot/shutdown.c index 11a725680..74b5770f1 100644 --- a/commands/reboot/shutdown.c +++ b/commands/reboot/shutdown.c @@ -160,7 +160,7 @@ char *argv[]; opt=argv[i]; } reboot_code=opt; - opt=""; + opt+=strlen(opt)-1; } break; case 'R':