From: David van Moolenbroek Date: Thu, 9 Sep 2010 08:48:47 +0000 (+0000) Subject: shutdown(8): buffer accessed beyond end during option parsing X-Git-Tag: v3.1.8~10 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/datamaps.china.min.js?a=commitdiff_plain;h=2bda06bbb50f223f99fbf3a775905f01bfefe7fc;p=minix.git shutdown(8): buffer accessed beyond end during option parsing --- 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':