Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xenbus Compute storage size for a string correc...
details: https://anonhg.NetBSD.org/src/rev/d942ab172bb5
branches: trunk
changeset: 449208:d942ab172bb5
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Feb 26 15:55:33 2019 +0000
description:
Compute storage size for a string correctly.
diffstat:
sys/arch/xen/xenbus/xenbus_probe.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 42c2bf0567ea -r d942ab172bb5 sys/arch/xen/xenbus/xenbus_probe.c
--- a/sys/arch/xen/xenbus/xenbus_probe.c Tue Feb 26 13:09:35 2019 +0000
+++ b/sys/arch/xen/xenbus/xenbus_probe.c Tue Feb 26 15:55:33 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus_probe.c,v 1.39 2016/07/07 06:55:40 msaitoh Exp $ */
+/* $NetBSD: xenbus_probe.c,v 1.40 2019/02/26 15:55:33 joerg Exp $ */
/******************************************************************************
* Talks to Xen Store to figure out what devices we have.
*
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenbus_probe.c,v 1.39 2016/07/07 06:55:40 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenbus_probe.c,v 1.40 2019/02/26 15:55:33 joerg Exp $");
#if 0
#define DPRINTK(fmt, args...) \
@@ -623,11 +623,11 @@
xenbus_probe_backends();
/* Watch for changes. */
- fe_watch.node = malloc(strlen("device" + 1), M_DEVBUF, M_NOWAIT);
+ fe_watch.node = malloc(strlen("device") + 1, M_DEVBUF, M_NOWAIT);
strcpy(fe_watch.node, "device");
fe_watch.xbw_callback = frontend_changed;
register_xenbus_watch(&fe_watch);
- be_watch.node = malloc(strlen("backend" + 1), M_DEVBUF, M_NOWAIT);
+ be_watch.node = malloc(strlen("backend") + 1, M_DEVBUF, M_NOWAIT);
strcpy(be_watch.node, "backend");
be_watch.xbw_callback = backend_changed;
register_xenbus_watch(&be_watch);
Home |
Main Index |
Thread Index |
Old Index