mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
\0 to all files. Reported by: M A Young.
This commit is contained in:
1 parent
da5ed5cf6b
commit
e1aa5b6620
2 files changed
+8
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user