src/stdlib/SDL_iconv.c
branchSDL-1.2
changeset 3918 f16c15f3bc2b
parent 1849 b5a4ac87b98c
child 3984 b74530a1dad6
--- a/src/stdlib/SDL_iconv.c	Thu Feb 15 23:50:45 2007 +0000
+++ b/src/stdlib/SDL_iconv.c	Fri Feb 16 03:50:42 2007 +0000
@@ -149,11 +149,12 @@
 }
 
 size_t SDL_iconv(SDL_iconv_t cd,
-                 char **inbuf, size_t *inbytesleft,
+                 const char **inbuf, size_t *inbytesleft,
                  char **outbuf, size_t *outbytesleft)
 {
 	/* For simplicity, we'll convert everything to and from UCS-4 */
-	char *src, *dst;
+	const char *src;
+	char *dst;
 	size_t srclen, dstlen;
 	Uint32 ch = 0;
 	size_t total;
@@ -755,7 +756,7 @@
 
 #endif /* !HAVE_ICONV */
 
-char *SDL_iconv_string(const char *tocode, const char *fromcode, char *inbuf, size_t inbytesleft)
+char *SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft)
 {
 	SDL_iconv_t cd;
 	char *string;