Branch: Tag:

2001-02-15

2001-02-15 18:06:55 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix

Rev: src/modules/Gz/zlibmod.c:1.39

5:   \*/   /**/   #include "global.h" - RCSID("$Id: zlibmod.c,v 1.38 2001/02/08 12:44:38 hubbe Exp $"); + RCSID("$Id: zlibmod.c,v 1.39 2001/02/15 18:06:55 hubbe Exp $");      #include "zlib_machine.h"   
158:    /* Absorb any unused space /Hubbe */    low_make_buf_space(-((ptrdiff_t)this->gz.avail_out), buf);    -  /* we don't care about Z_BUF_ERROR here; it won't happen. */ +  if(ret == Z_BUF_ERROR) ret=Z_OK;    }    while (ret==Z_OK && (this->gz.avail_in || !this->gz.avail_out));   
362:    THREADS_DISALLOW();    low_make_buf_space(-((ptrdiff_t)this->gz.avail_out), buf);    -  /* BUG WORKAROUND -Hubbe */ +     if(ret == Z_BUF_ERROR) ret=Z_OK;       if(ret != Z_OK)
409:    initialize_buf(&buf);       SET_ONERROR(err,toss_buffer,&buf); -  fail=do_inflate(&buf,this,Z_NO_FLUSH); +  fail=do_inflate(&buf,this,Z_SYNC_FLUSH);    UNSET_ONERROR(err);       if(fail != Z_OK && fail != Z_STREAM_END)