diff --git a/src/core/charset/iconv.c b/src/core/charset/iconv.c index f6a1b97..69bfbfe 100644 --- a/src/core/charset/iconv.c +++ b/src/core/charset/iconv.c @@ -108,7 +108,11 @@ struct _lib3270_iconv } - return NULL; + char * rc = lib3270_malloc(length+1); + strcpy(rc,str); + rc[length] = 0; + + return rc; } char * lib3270_iconv_from_host(LIB3270_ICONV *conv, const char *str, int len) -- libgit2 0.21.2