diff --git a/misc/lzexpand.c b/misc/lzexpand.c index 667b5a38030..8e5f8f5c4d2 100644 --- a/misc/lzexpand.c +++ b/misc/lzexpand.c @@ -56,7 +56,7 @@ struct lzstate { static struct lzstate *lzstates[MAX_LZSTATES]; #define IS_LZ_HANDLE(h) (((h) >= 0x400) && ((h) < 0x400+MAX_LZSTATES)) -#define GET_LZ_STATE(h) (IS_LZ_HANDLE(h) ? lzstates[(h)] : NULL) +#define GET_LZ_STATE(h) (IS_LZ_HANDLE(h) ? lzstates[(h)-0x400] : NULL) /* reads one compressed byte, including buffering */ #define GET(lzs,b) _lzget(lzs,&b)