mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Added check for null pointer while processing cmdline options. Pointer
overrun was causing SEGV if any cmdline options were specified.
This commit is contained in:
parent
ab6d7bb5f8
commit
44a0153a90
@ -314,7 +314,7 @@ register char ***arg;
|
||||
if the game is being recovered */
|
||||
|
||||
s = *arg;
|
||||
while (s[0][0] == '-') {
|
||||
while ((s[0] != NULL) && (s[0][0] == '-')) {
|
||||
switch (s[0][1]) {
|
||||
|
||||
/* don't ask if rules or instructions needed */
|
||||
|
Loading…
Reference in New Issue
Block a user