Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/tegra fix string copy for bootconf args



details:   https://anonhg.NetBSD.org/src/rev/059347840219
branches:  trunk
changeset: 811316:059347840219
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Oct 22 23:29:01 2015 +0000

description:
fix string copy for bootconf args

diffstat:

 sys/arch/evbarm/tegra/tegra_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 05b363d98ce4 -r 059347840219 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Thu Oct 22 23:17:08 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Thu Oct 22 23:29:01 2015 +0000
@@ -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 <jmcneill%invisible.ca@localhost>
@@ -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 @@
        if (ret == NULL)
                return NULL;
 
-       strncpy(ret, s, i + 1);
+       strlcpy(ret, s, i + 1);
        return ret;
 }
 



Home | Main Index | Thread Index | Old Index