]> wimlib.net Git - wimlib/commitdiff
lzms_init_compressor(): Do not zero end of window
authorEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 06:43:18 +0000 (00:43 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 06:43:18 +0000 (00:43 -0600)
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);
-       memset(&ctx->window[ulen], 0, 8);
        ctx->cur_window_pos = 0;
        ctx->window_size = ulen;