- The added line is THIS COLOR.
- The deleted line is THIS COLOR.
- http://oku.edu.mie-u.ac.jp/~okumura/compression/zlib.html
int result = uncompress(new_buffer, &origsize, old_buffer, bs->data_len - 4\
);
int result = uncompress(origbuff, &origsize, compbuff, compsize);
if (result != Z_OK) {
if (result == Z_MEM_ERROR) {
fprintf(stderr, "uncompress: Z_MEM_ERROR: can't malloc\n");
} else if (result == Z_BUF_ERROR) {
fprintf(stderr, "uncompress: Z_BUF_ERROR: not enough buff size\n");
}
return 1; // FAILURE
}