summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.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/media.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/media.c')
-rw-r--r--usr.sbin/sysinstall/media.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index efa9bc6..673baba 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: media.c,v 1.64 1996/11/04 02:12:49 jkh Exp $
+ * $Id: media.c,v 1.65 1996/11/07 14:17:09 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -297,7 +297,7 @@ mediaSetFTP(dialogMenuItem *self)
variable_unset(VAR_FTP_PATH);
return DITEM_FAILURE | what;
}
- strcpy(ftpDevice.name, cp);
+ SAFE_STRCPY(ftpDevice.name, cp);
dialog_clear_norefresh();
if (RunningAsInit &&
@@ -409,7 +409,7 @@ mediaSetNFS(dialogMenuItem *self)
"host:/full/pathname/to/FreeBSD/distdir");
return DITEM_FAILURE;
}
- strncpy(nfsDevice.name, cp, DEV_NAME_MAX);
+ SAFE_STRCPY(nfsDevice.name, cp);
/* str == NULL means we were just called to change NFS paths, not network interfaces */
if (!tcpDeviceSelect())
return DITEM_FAILURE;
OpenPOWER on IntegriCloud