summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--junklib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/junklib.c b/junklib.c
index 2d3d22a4..04b29628 100644
--- a/junklib.c
+++ b/junklib.c
@@ -487,6 +487,7 @@ junk_iconv (const char *in, int inlen, char *out, int outlen, const char *cs_in,
if (res == -1) {
return -1;
}
+ out[pout-out] = 0;
//trace ("iconv out: %s (len=%d)\n", out, pout - out);
return pout - out;
#elif defined(HAVE_ICU)