Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Make sure the interface name is 0 terminate...
details: https://anonhg.NetBSD.org/src/rev/b2fdfbbcf76d
branches: trunk
changeset: 331682:b2fdfbbcf76d
user: martin <martin%NetBSD.org@localhost>
date: Tue Aug 19 13:01:48 2014 +0000
description:
Make sure the interface name is 0 terminated, pointed out by coverity scan.
diffstat:
usr.sbin/sysinst/net.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9a6049b2d898 -r b2fdfbbcf76d usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c Tue Aug 19 12:36:58 2014 +0000
+++ b/usr.sbin/sysinst/net.c Tue Aug 19 13:01:48 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.3 2014/08/19 06:47:15 martin Exp $ */
+/* $NetBSD: net.c,v 1.4 2014/08/19 13:01:48 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -264,7 +264,7 @@
if (*ignore != NULL)
continue;
- strncpy (devs[i].if_dev, buf, STRSIZE);
+ strlcpy (devs[i].if_dev, buf, STRSIZE);
i++;
}
strcpy(devs[i].if_dev, "\0");
Home |
Main Index |
Thread Index |
Old Index