# HG changeset patch
# User Emmanuel Ackaouy <ack@xxxxxxxxxxxxx>
# Date 1170257031 0
# Node ID b235a7acaf4a452c1e197665dec24af0b6a4e606
# Parent 3cccf8e6429666be58408972570dbd063a2bae1e
[TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
From: Gerd Hoffmann <kraxel@xxxxxxx>
Signed-off-by: Emmanuel Ackaouy <ack@xxxxxxxxxxxxx>
---
tools/xcutils/readnotes.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 3cccf8e64296 -r b235a7acaf4a tools/xcutils/readnotes.c
--- a/tools/xcutils/readnotes.c Wed Jan 31 13:20:36 2007 +0000
+++ b/tools/xcutils/readnotes.c Wed Jan 31 15:23:51 2007 +0000
@@ -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;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|