iconv isn't const safe. Neither should smb_iconv be.
authorJeremy Allison <jra@samba.org>
Sat, 27 Sep 2003 01:29:18 +0000 (01:29 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 27 Sep 2003 01:29:18 +0000 (01:29 +0000)
Jeremy.
(This used to be commit 238bb74c16417140d85a304890b97e04df389ae9)

source3/lib/iconv.c

index 3d26d7e17c9b31b1c18f038e3d0e9026715182a1..0326ca70611db5bb27f426490a52e3f645d0c476 100644 (file)
@@ -136,7 +136,7 @@ static size_t sys_iconv(void *cd,
  * enough that Samba works on systems that don't have iconv.
  **/
 size_t smb_iconv(smb_iconv_t cd, 
-                const char **inbuf, size_t *inbytesleft,
+                char **inbuf, size_t *inbytesleft,
                 char **outbuf, size_t *outbytesleft)
 {
        char cvtbuf[2048];