diff options
author | yzrh <yzrh@noema.org> | 2022-12-22 19:47:40 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-24 23:29:56 +0000 |
commit | 9c1f1d0b75de0d2ed299842d3025941f3e681c16 (patch) | |
tree | 302f6d4a2235acfe8872a3c0c1c216fecc323b95 /src/cnki_zlib.c | |
parent | ac3b1dda63944f2cc8caaa52344774255e1956c8 (diff) | |
download | melon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.gz melon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.zst |
Fix HN conversion and add JBIG2 support.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/cnki_zlib.c')
-rw-r--r-- | src/cnki_zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <yzrh@noema.org> + * Copyright (c) 2020-2022, yzrh <yzrh@noema.org> * * 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; |