Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev CID 1297229: Memory - illegal accesses (BUFFER_SIZE...
details: https://anonhg.NetBSD.org/src/rev/c7b344c0e4dc
branches: trunk
changeset: 338030:c7b344c0e4dc
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat May 09 11:53:34 2015 +0000
description:
CID 1297229: Memory - illegal accesses (BUFFER_SIZE_WARNING)
diffstat:
sys/dev/dksubr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 9da3ccde0694 -r c7b344c0e4dc sys/dev/dksubr.c
--- a/sys/dev/dksubr.c Sat May 09 11:17:59 2015 +0000
+++ b/sys/dev/dksubr.c Sat May 09 11:53:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.61 2015/05/05 21:52:10 mlelstv Exp $ */
+/* $NetBSD: dksubr.c,v 1.62 2015/05/09 11:53:34 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.61 2015/05/05 21:52:10 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.62 2015/05/09 11:53:34 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -82,7 +82,7 @@
dksc->sc_dtype = dtype;
dksc->sc_dev = dev;
- strncpy(dksc->sc_xname, device_xname(dev), DK_XNAME_SIZE);
+ strlcpy(dksc->sc_xname, device_xname(dev), DK_XNAME_SIZE);
dksc->sc_dkdev.dk_name = dksc->sc_xname;
}
Home |
Main Index |
Thread Index |
Old Index