shutdown(8): buffer accessed beyond end during option parsing
This commit is contained in:
parent
2e209097b6
commit
2bda06bbb5
@ -160,7 +160,7 @@ char *argv[];
|
|||||||
opt=argv[i];
|
opt=argv[i];
|
||||||
}
|
}
|
||||||
reboot_code=opt;
|
reboot_code=opt;
|
||||||
opt="";
|
opt+=strlen(opt)-1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'R':
|
case 'R':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user