* - added inflateIncomp and deflateOutputPending
* - allow strm->next_out to be NULL, meaning discard the output
*
- * $Id: zlib.c,v 1.9 1998/02/04 01:36:09 paulus Exp $
+ * $Id: zlib.c,v 1.10 1998/03/19 04:55:37 paulus Exp $
*/
/*
return Z_STREAM_ERROR;
ss = (deflate_state *) source->state;
- *dest = *source;
+ zmemcpy(dest, source, sizeof(*dest));
ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state));
if (ds == Z_NULL) return Z_MEM_ERROR;
dest->state = (struct internal_state FAR *) ds;
- *ds = *ss;
+ zmemcpy(ds, ss, sizeof(*ds));
ds->strm = dest;
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));