diff options
author | Paul Mackerras <paulus@samba.org> | 1998-03-19 04:55:37 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 1998-03-19 04:55:37 +0000 |
commit | d9e1a10fb18a0642b3c77dc678df687a32c8ad5d (patch) | |
tree | c445db19905a45194a6e9c2efc50ce895b09ec9e | |
parent | b19e69fdab6833ef281161b1a50617b7ecf4e6cd (diff) | |
download | ppp-d9e1a10fb18a0642b3c77dc678df687a32c8ad5d.tar.gz |
don't use structure assignment, gcc generates memcpy for it
which isn't available in Solaris kernel
-rw-r--r-- | common/zlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/zlib.c b/common/zlib.c index 8ec7a9b..9d1b8f2 100644 --- a/common/zlib.c +++ b/common/zlib.c @@ -10,7 +10,7 @@ * - 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 $ */ /* @@ -1147,12 +1147,12 @@ int deflateCopy (dest, source) 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)); |