From: Vladimir Serbinenko Date: Thu, 14 Nov 2013 21:40:50 +0000 (+0100) Subject: * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add X-Git-Tag: grub-2.02-beta1~323 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1aa5b662088cea329fc968af7c819784b6da068;p=thirdparty%2Fgrub.git * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add \0 to all files. Reported by: M A Young. --- diff --git a/ChangeLog b/ChangeLog index cfa917553..26cf0f087 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-11-14 Vladimir Serbinenko + + * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add + \0 to all files. + + Reported by: M A Young. + 2013-11-14 Vladimir Serbinenko * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix diff --git a/grub-core/kern/xen/init.c b/grub-core/kern/xen/init.c index 3bfd99fc9..ab74543d1 100644 --- a/grub-core/kern/xen/init.c +++ b/grub-core/kern/xen/init.c @@ -256,11 +256,10 @@ grub_xenstore_write_file (const char *dir, const void *buf, grub_size_t len) grub_memset (&msg, 0, sizeof (msg)); msg.type = XS_WRITE; - msg.len = dirlen + len + 1; + msg.len = dirlen + len; grub_xen_store_send (&msg, sizeof (msg)); grub_xen_store_send (dir, dirlen); grub_xen_store_send (buf, len); - grub_xen_store_send ("", 1); grub_xen_store_recv (&msg, sizeof (msg)); resp = grub_malloc (msg.len + 1); if (!resp)