summaryrefslogtreecommitdiffstats
path: root/decoder.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:09:21 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 05:09:21 +0000
commit8469f9f6b5ed695b45b4fe244d3f44c8e43a83b5 (patch)
tree4c8476e2deb59819daaa41e721ae44945a864c64 /decoder.c
parentAdding upstream version 1.7~pre1. (diff)
downloadlunzip-8469f9f6b5ed695b45b4fe244d3f44c8e43a83b5.tar.xz
lunzip-8469f9f6b5ed695b45b4fe244d3f44c8e43a83b5.zip
Adding upstream version 1.7.upstream/1.7
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder.c b/decoder.c
index 8416adb..8061465 100644
--- a/decoder.c
+++ b/decoder.c
@@ -222,7 +222,7 @@ int LZd_decode_member( struct LZ_decoder * const d,
const int pos_state = LZd_data_position( d ) & pos_state_mask;
if( Rd_decode_bit( rdec, &d->bm_match[state][pos_state] ) == 0 ) /* 1st bit */
{
- const uint8_t prev_byte = LZd_peek1( d );
+ const uint8_t prev_byte = LZd_peek_prev( d );
if( St_is_char( state ) )
{
state -= ( state < 4 ) ? state : 3;