]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 21:40:50 +0000 (22:40 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 21:40:50 +0000 (22:40 +0100)
\0 to all files.

Reported by: M A Young.

ChangeLog
grub-core/kern/xen/init.c

index cfa917553168407b7272ec90707a45d0d92a917a..26cf0f08778a18dda346db74003ed9eb65f75615 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * 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  <phcoder@gmail.com>
 
        * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
index 3bfd99fc95c8884895cd121304b8dd5ca5c2905c..ab74543d16c9fdd42a3cd3ee5502703bfe5e7c58 100644 (file)
@@ -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)