Subject: Fix for tset(1)
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Frank van der Linden <vdlinden@fwi.uva.nl>
List: netbsd-bugs
Date: 02/26/1994 12:43:28
There's a bug in tset(1) that comes up whenever you call reset(1).
DESCRIPTION
/usr/bin/reset will clear the screen and then print
: No such file or directory.
CAUSED BY
a wrong buffer pointer when getting the "rf" or "if" filename.
FIX
Before getting the filename, set the buffer pointer to point at
the start of the buffer.
Onno van der Linden c/o vdlinden@fwi.uva.nl (Frank van der Linden)
*** /usr/src/usr.bin/tset/set.c.old Wed Aug 25 13:04:53 1993
--- /usr/src/usr.bin/tset/set.c Sat Feb 26 12:20:05 1994
***************
*** 259,262 ****
--- 259,263 ----
settle = 1;
}
+ bp = buf;
if (tgetstr("rf", &bp) != 0 || tgetstr("if", &bp) != 0) {
cat(buf);
------------------------------------------------------------------------------