Subject: bin/2417: snake won't run (coredumps) due to terminal problem (?)
To: None <gnats-bugs@NetBSD.ORG>
From: None <>
List: netbsd-bugs
Date: 05/15/1996 20:25:34
>Number:         2417
>Category:       bin
>Synopsis:       snake won't run (coredumps) due to terminal problem (?)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 15 20:35:02 1996
>Originator:     Aaron Brown
Harvard University Computer Science
>Release:        NetBSD-current 3 May 1996
Sun SPARCstation 20, 75 MHz SuperSparc-II
System: NetBSD virtual4 1.1B NetBSD 1.1B (VIRTUAL4) #24: Fri May 3 23:08:57 EDT 1996 abrown@virtual4:/usr/src/sys/arch/sparc/compile/VIRTUAL4 sparc

When running the game "snake" (/usr/games/snake), it coredumps immediately
on startup. I traced it down to move.c line 646, which does a strlen(BS),
where BS is NULL. If I change this to 

	if (BS != NULL)
		BSlength = strlen(BS);
		BSlength = 0;

then it doesn't coredump, but it makes a mess of my screen and generally
doesn't work. This happens with both vt220 and vt100 termcaps; libraries
and /usr/share were up-to-date as of about May 3.
run /usr/games/snake
Well, the above change keeps it from dumping core, but it still doesn't work.
This should probably not be high-priority, as it is just a game and a