Article View: comp.emacs
Article #8162MicroEMACS 3.10 beta - #6
From: William E. Davidsen Jr
Date: Mon, 19 Dec 1988 16:59
Date: Mon, 19 Dec 1988 16:59
23 lines
1319 bytes
1319 bytes
When getting control strings from the termcap in tcapopen (UNIX only),
the result is not check to see if the string is not present. This
results in a call to strcpy with the NULL string as the source, and
will cause a memory fault on some machines.
As before this is for the separate version of tcap.c, not the one
included in emacssrc.arc.
When the VT100 option is used, I'm not sure that the keystrokes should
even be loaded, but they shouldn't cause a memory fault.
**** tcap.c
190c190,191
< strcpy(ttable[index].p_seq, tgetstr(ttable[index].p_name, &p));
---
> if (t = tgetstr(ttable[index].p_name, &p))
> strcpy(ttable[index].p_seq, t);
--
bill davidsen (wedu@ge-crd.arpa)
{uunet | philabs}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me
Technical Details
Message-ID:
<12827@steinmetz.ge.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!amdcad!sun!pitstop!sundc!seismo!uunet!steinmetz!davidsenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!amdcad!sun!pitstop!sundc!seismo!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.emacs Subject: MicroEMACS 3.10 beta - #6 Keywords: memacs, beta Message-ID: <12827@steinmetz.ge.com> Date: 19 Dec 88 16:59:59 GMT Reply-To: davidsen@crdos1.UUCP (bill davidsen) Distribution: na Organization: GE Corp. R & D, Schenectady,NY Lines: 23