1
0
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:
etheisen 1996-02-12 07:42:26 +00:00
parent ab6d7bb5f8
commit 44a0153a90

View File

@ -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 */