diff options
Diffstat (limited to 'weechat/src/common/weechat.c')
-rw-r--r-- | weechat/src/common/weechat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weechat/src/common/weechat.c b/weechat/src/common/weechat.c index dc8139089..41ab68191 100644 --- a/weechat/src/common/weechat.c +++ b/weechat/src/common/weechat.c @@ -115,7 +115,9 @@ weechat_convert_encoding (char *from_code, char *to_code, char *string) #ifdef HAVE_ICONV iconv_t cd; - char *inbuf, *ptr_inbuf, *ptr_outbuf; + char *inbuf; + ICONV_CONST char *ptr_inbuf; + char *ptr_outbuf; size_t inbytesleft, outbytesleft; if (from_code && from_code[0] && to_code && to_code[0] |