summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-09 08:22:19 +0000
committerjkh <jkh@FreeBSD.org>1996-12-09 08:22:19 +0000
commit78cf4aee6b346217e9f9fbee836c6c67a8cbda61 (patch)
tree703f1957c7cb4d3138f4dca933a94c51a76a6ae6 /usr.sbin/sysinstall/msg.c
parent316f6be0fa40f1f38890e5f7030d808f4de39e18 (diff)
downloadFreeBSD-src-78cf4aee6b346217e9f9fbee836c6c67a8cbda61.zip
FreeBSD-src-78cf4aee6b346217e9f9fbee836c6c67a8cbda61.tar.gz
As Paul has just pointed out, much of my strncpy() usage was either
bogus or overly complex and really needed to be done more consistently and sanely throughout - no question about it. Done. Suggested-By: Paul Traina <pst@Shockwave.COM>
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index ee79777..7770c70 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/sysinstall/msg.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: msg.c,v 1.40 1996/08/03 10:11:21 jkh Exp $
+ * $Id: msg.c,v 1.41 1996/10/01 04:56:34 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -257,7 +257,7 @@ msgGetInput(char *buf, char *fmt, ...)
use_helpline(NULL);
use_helpfile(NULL);
if (buf)
- strcpy(input_buffer, buf);
+ SAFE_STRCPY(input_buffer, buf);
else
input_buffer[0] = '\0';
if (OnVTY) {
OpenPOWER on IntegriCloud