summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorroy <roy@NetBSD.org>2010-02-10 10:34:59 +0000
committerroy <roy@NetBSD.org>2010-02-10 10:34:59 +0000
commiteae295f613fcf146bd48c4fd9a47ae9a5fa1d4eb (patch)
treea0638152d1277e011c3274ef50c3f2a1339cc487 /usr.bin
parent8cfe7bba8c349a2ecf2241a54efd21e3ee3998ed (diff)
We need to cap reset_file/init_file.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tset/set.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/usr.bin/tset/set.c b/usr.bin/tset/set.c
index 2a4338b28a0..30b984bbd93 100644
--- a/usr.bin/tset/set.c
+++ b/usr.bin/tset/set.c
@@ -1,4 +1,4 @@
-/* $NetBSD: set.c,v 1.13 2010/02/03 15:34:46 roy Exp $ */
+/* $NetBSD: set.c,v 1.14 2010/02/10 10:34:59 roy Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -30,13 +30,9 @@
*/
#include <sys/cdefs.h>
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)set.c 8.2 (Berkeley) 2/28/94";
-#endif
-__RCSID("$NetBSD: set.c,v 1.13 2010/02/03 15:34:46 roy Exp $");
-#endif /* not lint */
+__RCSID("$NetBSD: set.c,v 1.14 2010/02/10 10:34:59 roy Exp $");
+#include <err.h>
#include <stdio.h>
#include <term.h>
#include <termios.h>
@@ -202,6 +198,7 @@ set_conversions(int usingupper)
mode.c_lflag |= (ECHOE | ECHOK);
}
+#
/* Output startup string. */
void
set_init()
@@ -227,7 +224,7 @@ set_init()
settle = 1;
}
if ((bp = reset_file) || (bp = init_file)) {
- tputs(bp, 0, outc);
+ tset_cat(bp);
settle = 1;
}
}