From dfbb771c83664afc246a3834d4ec17f3169b5989 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 18 Mar 2003 16:55:55 +0000 Subject: Use strlcpy() / strlcat() throughout. --- lib/libcurses/tty/lib_mvcur.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libcurses/tty/lib_mvcur.c') diff --git a/lib/libcurses/tty/lib_mvcur.c b/lib/libcurses/tty/lib_mvcur.c index 45b0a2b7178..8e7db26334a 100644 --- a/lib/libcurses/tty/lib_mvcur.c +++ b/lib/libcurses/tty/lib_mvcur.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lib_mvcur.c,v 1.10 2001/01/22 18:02:00 millert Exp $ */ +/* $OpenBSD: lib_mvcur.c,v 1.11 2003/03/18 16:55:54 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. * @@ -964,7 +964,7 @@ roll(int n) int main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) { - (void) strcpy(tname, termname()); + (void) strlcpy(tname, termname(), sizeof(tname)); load_term(); _nc_setupscreen(lines, columns, stdout); baudrate(); @@ -1029,7 +1029,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) before.tv_sec) * 1000000)); } else if (buf[0] == 'r') { - (void) strcpy(tname, termname()); + (void) strlcpy(tname, termname(), sizeof(tname)); load_term(); } else if (sscanf(buf, "l %s", tname) == 1) { load_term(); -- cgit v1.2.3