[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [patch] readnotes fix


  • To: Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Gerd Hoffmann <kraxel@xxxxxxx>
  • Date: Wed, 31 Jan 2007 15:54:21 +0100
  • Delivery-date: Wed, 31 Jan 2007 06:54:02 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

  Hi,

Fix tyops which breaks transparent gunzipping ...

please apply,

  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>
--- build-pae-unstable-13658/tools/xcutils/readnotes.c~ 2007-01-31 
11:28:54.000000000 +0100
+++ build-pae-unstable-13658/tools/xcutils/readnotes.c  2007-01-31 
12:06:07.000000000 +0100
@@ -72,8 +72,8 @@
        usize = xc_dom_check_gzip(image, st.st_size);
        if (usize)
        {
-               tmp = malloc(size);
-               xc_dom_do_gunzip(image, st.st_size, tmp, size);
+               tmp = malloc(usize);
+               xc_dom_do_gunzip(image, st.st_size, tmp, usize);
                image = tmp;
                size = usize;
        }
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.