diff options
-rw-r--r-- | e-util/e-iconv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index 7f18a5b43e..64c0508cd5 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -412,10 +412,11 @@ iconv_t e_iconv_open(const char *oto, const char *ofrom) /* work around some broken iconv implementations * that die if the length arguments are NULL */ - size_t buggy_iconv = 0; + size_t buggy_iconv_len = 0; + gchar *buggy_iconv_buf = NULL; /* resets the converter */ - iconv(ip, NULL, &buggy_iconv, NULL, &buggy_iconv); + iconv(ip, &buggy_iconv_buf, &buggy_iconv_len, &buggy_iconv_buf, &buggy_iconv_len); in->busy = TRUE; e_dlist_remove((EDListNode *)in); e_dlist_addhead(&ic->open, (EDListNode *)in); |