Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 410333 | Differences between
and this patch

Collapse All | Expand All

(-)milkytracker-0.90.85/src/compression/DecompressorGZIP.cpp (-3 / +3 lines)
Lines 61-67 Link Here
61
	int len = 0;
61
	int len = 0;
62
	pp_uint8 *buf;
62
	pp_uint8 *buf;
63
	
63
	
64
	if ((gz_input_file = (void **)gzopen (fileName.getStrBuffer(), "r")) == NULL)
64
	if ((gz_input_file = (gzFile*)gzopen (fileName.getStrBuffer(), "r")) == NULL)
65
		return false;
65
		return false;
66
	
66
	
67
	if ((buf = new pp_uint8[0x10000]) == NULL)
67
	if ((buf = new pp_uint8[0x10000]) == NULL)
Lines 71-77 Link Here
71
	
71
	
72
    while (true) 
72
    while (true) 
73
	{
73
	{
74
        len = gzread (gz_input_file, buf, 0x10000);
74
        len = gzread (*gz_input_file, buf, 0x10000);
75
		
75
		
76
        if (len < 0) 
76
        if (len < 0) 
77
		{
77
		{
Lines 84-90 Link Here
84
		fOut.write(buf, 1, len);
84
		fOut.write(buf, 1, len);
85
    }
85
    }
86
	
86
	
87
    if (gzclose (gz_input_file) != Z_OK)
87
    if (gzclose (*gz_input_file) != Z_OK)
88
	{
88
	{
89
	    delete[] buf;
89
	    delete[] buf;
90
        return false;
90
        return false;

Return to bug 410333