minios: avoid putting trailing \0 in xenstore
PATCH 1/1 minios: avoid putting trailing \0 in xenstore
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 <[email protected]>
extras/mini-os/xenbus/xenbus.c +1 -1
@@ -452,7 +452,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));