Merge branch 'fix-options' of https://github.com/argrath/NetHack into NetHack-3.7

This commit is contained in:
nhmall
2023-11-10 09:13:45 -05:00

View File

@@ -630,12 +630,10 @@ parseoptions(
if (pfx_match && optresult == optn_err) {
char pfxbuf[BUFSZ], *pfxp;
if (opts) {
Snprintf(pfxbuf, sizeof pfxbuf, "%s", opts);
if ((pfxp = strchr(pfxbuf, ':')) != 0)
*pfxp = '\0';
config_error_add("bad option suffix variation '%s'", pfxbuf);
}
Snprintf(pfxbuf, sizeof pfxbuf, "%s", opts);
if ((pfxp = strchr(pfxbuf, ':')) != 0)
*pfxp = '\0';
config_error_add("bad option suffix variation '%s'", pfxbuf);
return FALSE;
}
if (got_match && optresult == optn_err)