summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/attr.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 /release/sysinstall/attr.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 'release/sysinstall/attr.c')
-rw-r--r--release/sysinstall/attr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c
index 43a45a4..0bd06cf 100644
--- a/release/sysinstall/attr.c
+++ b/release/sysinstall/attr.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: attr.c,v 1.7 1996/06/11 05:06:31 jkh Exp $
+ * $Id: attr.c,v 1.8 1996/09/08 01:39:23 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -137,8 +137,8 @@ attr_parse(Attribs *attr, int fd)
break;
case COMMIT:
- strcpy(attr[num_attribs].name, hold_n);
- strcpy(attr[num_attribs].value, hold_v);
+ SAFE_STRCPY(attr[num_attribs].name, hold_n);
+ SAFE_STRCPY(attr[num_attribs].value, hold_v);
state = LOOK;
v = n = 0;
++num_attribs;
OpenPOWER on IntegriCloud