aboutsummaryrefslogtreecommitdiffstats
path: root/src/iconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iconv.c')
-rw-r--r--src/iconv.c4
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);