diff options
author | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2020-12-30 03:09:00 +0000 |
commit | 98691d4203f4e578b84b2014db0fbe0c1209cc48 (patch) | |
tree | c528e3ea964111b934ae5e61e847831d62944f41 /src/iconv.c | |
parent | 8d6fbb43c9bc840d4217bf4f0b49b1213f1601a1 (diff) | |
download | melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.gz melon-98691d4203f4e578b84b2014db0fbe0c1209cc48.tar.zst |
Add HN text extraction.
Diffstat (limited to 'src/iconv.c')
-rw-r--r-- | src/iconv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/iconv.c b/src/iconv.c index eadfb4b..f5a3dbe 100644 --- a/src/iconv.c +++ b/src/iconv.c @@ -9,7 +9,6 @@ #include <iconv.h> -/* So, why would anyone use something other than UTF-8? */ int strconv(char **dst, const char * restrict dst_code, @@ -51,8 +50,7 @@ strconv(char **dst, free(src_start); return 1; } else { - /* Not including NULL */ - *size -= dst_size + 2; + *size -= dst_size; *dst = malloc(*size); |