Module Name:    src
Committed By:   jmcneill
Date:           Thu Oct 22 23:29:01 UTC 2015

Modified Files:
        src/sys/arch/evbarm/tegra: tegra_machdep.c

Log Message:
fix string copy for bootconf args


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/evbarm/tegra/tegra_machdep.c

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

Modified files:

Index: src/sys/arch/evbarm/tegra/tegra_machdep.c
diff -u src/sys/arch/evbarm/tegra/tegra_machdep.c:1.23 src/sys/arch/evbarm/tegra/tegra_machdep.c:1.24
--- src/sys/arch/evbarm/tegra/tegra_machdep.c:1.23	Wed Oct 21 20:02:13 2015
+++ src/sys/arch/evbarm/tegra/tegra_machdep.c	Thu Oct 22 23:29:01 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.23 2015/10/21 20:02:13 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.24 2015/10/22 23:29:01 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.23 2015/10/21 20:02:13 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.24 2015/10/22 23:29:01 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -390,7 +390,7 @@ tegra_bootconf_strdup(const char *key)
 	if (ret == NULL)
 		return NULL;
 
-	strncpy(ret, s, i + 1);
+	strlcpy(ret, s, i + 1);
 	return ret;
 }
 

Reply via email to