From 9c1f1d0b75de0d2ed299842d3025941f3e681c16 Mon Sep 17 00:00:00 2001 From: yzrh Date: Thu, 22 Dec 2022 19:47:40 +0000 Subject: Fix HN conversion and add JBIG2 support. Signed-off-by: yzrh --- src/cnki_zlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cnki_zlib.c') diff --git a/src/cnki_zlib.c b/src/cnki_zlib.c index 7731036..edff141 100644 --- a/src/cnki_zlib.c +++ b/src/cnki_zlib.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021, yzrh + * Copyright (c) 2020-2022, yzrh * * SPDX-License-Identifier: Apache-2.0 */ @@ -18,7 +18,7 @@ cnki_zlib(char **dst, int *dst_size, *dst_size = size; - if (strinflate(dst, size, src + 24, size - 24) != 0) + if (strinflate(dst, size, src + 24, src_size - 24) != 0) return 1; return 0; -- cgit v1.2.3