From 80bd9afe43dbaf208d88e8e6a6e41a6ea7ae4bf7 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 14 Sep 2013 22:15:36 +0200 Subject: iconv regression fix --- junklib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'junklib.c') 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) -- cgit v1.2.3