ia64/xen-unstable

changeset 13790:b235a7acaf4a

[TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
author Emmanuel Ackaouy <ack@xensource.com>
date Wed Jan 31 15:23:51 2007 +0000 (2007-01-31)
parents 3cccf8e64296
children 9f83b07caabe
files tools/xcutils/readnotes.c
line diff
     1.1 --- a/tools/xcutils/readnotes.c	Wed Jan 31 13:20:36 2007 +0000
     1.2 +++ b/tools/xcutils/readnotes.c	Wed Jan 31 15:23:51 2007 +0000
     1.3 @@ -72,8 +72,8 @@ int main(int argc, char **argv)
     1.4  	usize = xc_dom_check_gzip(image, st.st_size);
     1.5  	if (usize)
     1.6  	{
     1.7 -		tmp = malloc(size);
     1.8 -		xc_dom_do_gunzip(image, st.st_size, tmp, size);
     1.9 +		tmp = malloc(usize);
    1.10 +		xc_dom_do_gunzip(image, st.st_size, tmp, usize);
    1.11  		image = tmp;
    1.12  		size = usize;
    1.13  	}