From: Emmanuel Ackaouy Date: Wed, 31 Jan 2007 15:23:51 +0000 (+0000) Subject: [TOOLS] Fix typos which breaks readnotes transparent gunzipping ... X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15358^2~32^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e42527954eec82f52422669a9d4c36e6c4f8438c;p=xen.git [TOOLS] Fix typos which breaks readnotes transparent gunzipping ... From: Gerd Hoffmann Signed-off-by: Emmanuel Ackaouy --- diff --git a/tools/xcutils/readnotes.c b/tools/xcutils/readnotes.c index fac684014a..f3e412da4e 100644 --- a/tools/xcutils/readnotes.c +++ b/tools/xcutils/readnotes.c @@ -72,8 +72,8 @@ int main(int argc, char **argv) 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; }