Skip to contentSkip to conversation

minios: avoid putting trailing \0 in xenstore

PATCH New Samuel Thibault 1 participant 1 message Mar 11, 2008

lore
Share & tools
lore
#0 lore raw

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.

extras/mini-os/xenbus/xenbus.c +1 -1
diff -r 3a246eeb29b8 extras/mini-os/xenbus/xenbus.c
@@ -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));