Module Name:    src
Committed By:   martin
Date:           Tue Aug 19 13:01:48 UTC 2014

Modified Files:
        src/usr.sbin/sysinst: net.c

Log Message:
Make sure the interface name is 0 terminated, pointed out by coverity scan.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/net.c
diff -u src/usr.sbin/sysinst/net.c:1.3 src/usr.sbin/sysinst/net.c:1.4
--- src/usr.sbin/sysinst/net.c:1.3	Tue Aug 19 06:47:15 2014
+++ src/usr.sbin/sysinst/net.c	Tue Aug 19 13:01:48 2014
@@ -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 @@ get_ifconfig_info(struct net_desc *devs)
 		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");

Reply via email to