summaryrefslogtreecommitdiffstats
path: root/lzlib.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:00:58 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:00:58 +0000
commite0aa265ecadf8bff4d088d60eb507273233916ac (patch)
treeba48f1be5bb58defd05661871c7ab9381c6c932a /lzlib.c
parentAdding upstream version 1.6~pre1. (diff)
downloadlzlib-e0aa265ecadf8bff4d088d60eb507273233916ac.tar.xz
lzlib-e0aa265ecadf8bff4d088d60eb507273233916ac.zip
Adding upstream version 1.6~pre2.upstream/1.6_pre2
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzlib.c')
-rw-r--r--lzlib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lzlib.c b/lzlib.c
index a69a9d2..48ef29e 100644
--- a/lzlib.c
+++ b/lzlib.c
@@ -1,5 +1,5 @@
/* Lzlib - Compression library for lzip files
- Copyright (C) 2009, 2010, 2011, 2012, 2013 Antonio Diaz Diaz.
+ Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -436,7 +436,8 @@ int LZ_decompress_read( struct LZ_Decoder * const d,
return -1;
}
d->lz_decoder = (struct LZ_decoder *)malloc( sizeof (struct LZ_decoder) );
- if( !d->lz_decoder || !LZd_init( d->lz_decoder, d->member_header, d->rdec ) )
+ if( !d->lz_decoder || !LZd_init( d->lz_decoder, d->rdec,
+ Fh_get_dictionary_size( d->member_header ) ) )
{ /* not enough free memory */
if( d->lz_decoder )
{ LZd_free( d->lz_decoder ); free( d->lz_decoder ); d->lz_decoder = 0; }