summaryrefslogtreecommitdiff
path: root/src/charset.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-03-26 18:37:47 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-03-26 18:37:47 +0100
commitdd471ef1c6d5508e5568a813505761b3bf935912 (patch)
tree8762880e871d67c5f36bfa1079b873dd63029b81 /src/charset.cpp
parent343f778256e89847e82e55fa5077e678f4c92cc2 (diff)
handle iconv() function that takes const char ** instead of char **
Diffstat (limited to 'src/charset.cpp')
-rw-r--r--src/charset.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charset.cpp b/src/charset.cpp
index fa683f2c..e8e9d1f9 100644
--- a/src/charset.cpp
+++ b/src/charset.cpp
@@ -73,7 +73,7 @@ namespace
char *outstart = outbuf;
char *instart = inbuf;
- if (iconv(cd, &inbuf, &len, &outbuf, &buflen) == (size_t)-1)
+ if (iconv(cd, const_cast<ICONV_CONST char **>(&inbuf), &len, &outbuf, &buflen) == (size_t)-1)
{
delete [] outstart;
iconv_close(cd);