summaryrefslogtreecommitdiff
path: root/usr.bin/less/screen.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 01:03:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-05 01:03:36 +0000
commit6ef06ef3d19087a7d9962c574e73e4261e8d6ae6 (patch)
tree250be0b152ab1cce414937d30de55143302cb30f /usr.bin/less/screen.c
parent39750f20d79b0fdac8c140c1bd8f7104cbf21f00 (diff)
some more string shit; krw ok
Diffstat (limited to 'usr.bin/less/screen.c')
-rw-r--r--usr.bin/less/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/less/screen.c b/usr.bin/less/screen.c
index ae291b8019a..febad1966b6 100644
--- a/usr.bin/less/screen.c
+++ b/usr.bin/less/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.8 2001/11/19 19:02:14 mpech Exp $ */
+/* $OpenBSD: screen.c,v 1.9 2003/04/05 01:03:35 deraadt Exp $ */
/*
* Copyright (c) 1984,1985,1989,1994,1995 Mark Nudelman
@@ -703,7 +703,7 @@ get_term()
if ((term = getenv("TERM")) == NULL)
term = DEFAULT_TERM;
if (tgetent(termbuf, term) <= 0)
- strcpy(termbuf, "dumb:hc:");
+ strlcpy(termbuf, "dumb:hc:", sizeof termbuf);
hard = tgetflag("hc");