diff options
Diffstat (limited to 'src/common/weechat.c')
-rw-r--r-- | src/common/weechat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/weechat.c b/src/common/weechat.c index dc8139089..41ab68191 100644 --- a/src/common/weechat.c +++ b/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] |