wok-current rev 17997

fusecloop: adjust size (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 24 18:45:51 2015 +0200 (2015-04-24)
parents 002387f15e95
children e3dd974dc058
files fusecloop/stuff/fusecloop.u
line diff
     1.1 --- a/fusecloop/stuff/fusecloop.u	Fri Apr 24 18:41:32 2015 +0200
     1.2 +++ b/fusecloop/stuff/fusecloop.u	Fri Apr 24 18:45:51 2015 +0200
     1.3 @@ -457,9 +457,9 @@
     1.4  +		quit("Malloc failed");
     1.5  +	
     1.6  +	for (n = 0; (len = readblock(uncompressed, block_size)) != 0; n++) {
     1.7 -+		if (len) lastlen = len;
     1.8 ++		lastlen = len;
     1.9  +		len = zlenmax;
    1.10 -+		if (compress2(compressed, &len, uncompressed, block_size, 
    1.11 ++		if (compress2(compressed, &len, uncompressed, lastlen, 
    1.12  +				Z_BEST_COMPRESSION) != Z_OK)
    1.13  +			quit("Compression failed");
    1.14  +		fprintf(stderr, "Block %u length %lu => %lu\n",