summaryrefslogtreecommitdiff
path: root/lib/libcurses/tinfo/lib_tputs.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-18 16:55:55 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-18 16:55:55 +0000
commitdfbb771c83664afc246a3834d4ec17f3169b5989 (patch)
treea6062cdd0136c3b4f82635b600a22a9bb6099569 /lib/libcurses/tinfo/lib_tputs.c
parent9504d3161dd42533b38ffc7e455b079baddb6032 (diff)
Use strlcpy() / strlcat() throughout.
Diffstat (limited to 'lib/libcurses/tinfo/lib_tputs.c')
-rw-r--r--lib/libcurses/tinfo/lib_tputs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/tinfo/lib_tputs.c b/lib/libcurses/tinfo/lib_tputs.c
index 046dc70c512..634d0317114 100644
--- a/lib/libcurses/tinfo/lib_tputs.c
+++ b/lib/libcurses/tinfo/lib_tputs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_tputs.c,v 1.10 2003/03/17 19:16:59 millert Exp $ */
+/* $OpenBSD: lib_tputs.c,v 1.11 2003/03/18 16:55:54 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. *
@@ -194,7 +194,7 @@ tputs
if (_nc_tracing & TRACE_TPUTS) {
if (outc == _nc_outch)
- (void) strcpy(addrbuf, "_nc_outch");
+ (void) strlcpy(addrbuf, "_nc_outch", sizeof(addrbuf));
else
(void) snprintf(addrbuf, sizeof(addrbuf), "%p", outc);
if (_nc_tputs_trace) {