--- 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; }