Merge branch 'NetHack-3.6.0'

This commit is contained in:
nhmall
2018-05-15 19:43:24 -04:00
7 changed files with 227 additions and 196 deletions

View File

@@ -343,7 +343,7 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
argv++;
}
if (!strncmp(argv[1], "-d", 2) && argv[1][2] != 'e') {
if (argc > 1 && !strncmp(argv[1], "-d", 2) && argv[1][2] != 'e') {
/* avoid matching "-dec" for DECgraphics; since the man page
* says -d directory, hope nobody's using -desomething_else
*/