[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] minios: avoid putting trailing \0 in xenstore
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1205840430 0 # Node ID ef85eeaf439a352e5ca4107876cbb4dd27c4930e # Parent 3f407392da492ebaa30764406f69549bc11ae791 minios: avoid putting trailing \0 in xenstore xenstore expects to get the exact amount of data, without the trailing \0. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx> --- extras/mini-os/xenbus/xenbus.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 3f407392da49 -r ef85eeaf439a extras/mini-os/xenbus/xenbus.c --- a/extras/mini-os/xenbus/xenbus.c Tue Mar 18 11:39:21 2008 +0000 +++ b/extras/mini-os/xenbus/xenbus.c Tue Mar 18 11:40:30 2008 +0000 @@ -453,7 +453,7 @@ char *xenbus_write(xenbus_transaction_t { struct write_req req[] = { {path, strlen(path) + 1}, - {value, strlen(value) + 1}, + {value, strlen(value)}, }; struct xsd_sockmsg *rep; rep = xenbus_msg_reply(XS_WRITE, xbt, req, ARRAY_SIZE(req)); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |