ia64/xen-unstable

changeset 17241:ef85eeaf439a

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@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 11:40:30 2008 +0000 (2008-03-18)
parents 3f407392da49
children cbb0dffdc07a
files extras/mini-os/xenbus/xenbus.c
line diff
     1.1 --- a/extras/mini-os/xenbus/xenbus.c	Tue Mar 18 11:39:21 2008 +0000
     1.2 +++ b/extras/mini-os/xenbus/xenbus.c	Tue Mar 18 11:40:30 2008 +0000
     1.3 @@ -453,7 +453,7 @@ char *xenbus_write(xenbus_transaction_t 
     1.4  {
     1.5      struct write_req req[] = { 
     1.6  	{path, strlen(path) + 1},
     1.7 -	{value, strlen(value) + 1},
     1.8 +	{value, strlen(value)},
     1.9      };
    1.10      struct xsd_sockmsg *rep;
    1.11      rep = xenbus_msg_reply(XS_WRITE, xbt, req, ARRAY_SIZE(req));