]> wimlib.net Git - wimlib/blobdiff - src/lzms-compress.c
lzms_init_compressor(): Do not zero end of window
[wimlib] / src / lzms-compress.c
index 72aef31b14fda69dd530bb7c5bc8e1cfaeccd92b..a18da5781842b12f892b51ef94eebbe9e7f433f1 100644 (file)
@@ -993,7 +993,6 @@ lzms_init_compressor(struct lzms_compressor *ctx, const u8 *udata, u32 ulen,
 
        /* Copy the uncompressed data into the @ctx->window buffer.  */
        memcpy(ctx->window, udata, ulen);
 
        /* Copy the uncompressed data into the @ctx->window buffer.  */
        memcpy(ctx->window, udata, ulen);
-       memset(&ctx->window[ulen], 0, 8);
        ctx->cur_window_pos = 0;
        ctx->window_size = ulen;
 
        ctx->cur_window_pos = 0;
        ctx->window_size = ulen;