]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commitdiff
minios: avoid putting trailing \0 in xenstore
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:40:30 +0000 (11:40 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:40:30 +0000 (11:40 +0000)
xenstore expects to get the exact amount of data, without
the trailing \0.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
xenbus/xenbus.c

index 147cef13313ea51e95c38c9266ef31a329c668ef..a6475a960d8f61cedef40844b52d6de0f6f436c2 100644 (file)
@@ -453,7 +453,7 @@ char *xenbus_write(xenbus_transaction_t xbt, const char *path, const char *value
 {
     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));