diff options
Diffstat (limited to 'trees.c')
-rw-r--r-- | trees.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -870,7 +870,8 @@ void ZLIB_INTERNAL _tr_stored_block(s, buf, stored_len, last) | |||
870 | bi_windup(s); /* align on byte boundary */ | 870 | bi_windup(s); /* align on byte boundary */ |
871 | put_short(s, (ush)stored_len); | 871 | put_short(s, (ush)stored_len); |
872 | put_short(s, (ush)~stored_len); | 872 | put_short(s, (ush)~stored_len); |
873 | zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); | 873 | if (stored_len) |
874 | zmemcpy(s->pending_buf + s->pending, (Bytef *)buf, stored_len); | ||
874 | s->pending += stored_len; | 875 | s->pending += stored_len; |
875 | #ifdef ZLIB_DEBUG | 876 | #ifdef ZLIB_DEBUG |
876 | s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L; | 877 | s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L; |