r6149: Fixes bugs #2498 and 2484.
[samba.git] / source / lib / iconv.c
index d58165fed03271457f6ec31de9796215ce891d47..f23e4351c02ee97940c7e7fe64d7dae0efb07f6c 100644 (file)
@@ -135,7 +135,7 @@ static size_t sys_iconv(void *cd,
 {
 #ifdef HAVE_NATIVE_ICONV
        size_t ret = iconv((iconv_t)cd, 
 {
 #ifdef HAVE_NATIVE_ICONV
        size_t ret = iconv((iconv_t)cd, 
-                          (char **)inbuf, inbytesleft, 
+                          CONST_DISCARD(char **, inbuf), inbytesleft, 
                           outbuf, outbytesleft);
        if (ret == (size_t)-1) {
                int saved_errno = errno;
                           outbuf, outbytesleft);
        if (ret == (size_t)-1) {
                int saved_errno = errno;