diff src/stdlib/SDL_iconv.c @ 3918:f16c15f3bc2b SDL-1.2

Minor const correctness patch to SDL_iconv.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 16 Feb 2007 03:50:42 +0000
parents b5a4ac87b98c
children b74530a1dad6
line wrap: on
line diff
--- 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;