Skip to contentSkip to conversation

readnotes fix

PATCH New Gerd Hoffmann 1 participant 1 message Jan 31, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 readnotes fix

Hi,

Fix tyops which breaks transparent gunzipping ...

please apply,

Gerd

Signature · 1 line
Gerd Hoffmann <[email protected]>
tools/xcutils/readnotes.c renamed from tools/xcutils/readnotes.c~ +2 -2
@@ -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
[email protected]
http://lists.xensource.com/xen-devel