src/stdlib/SDL_iconv.c
branchSDL-1.2
changeset 3918 f16c15f3bc2b
parent 1849 b5a4ac87b98c
child 3984 b74530a1dad6
     1.1 --- a/src/stdlib/SDL_iconv.c	Thu Feb 15 23:50:45 2007 +0000
     1.2 +++ b/src/stdlib/SDL_iconv.c	Fri Feb 16 03:50:42 2007 +0000
     1.3 @@ -149,11 +149,12 @@
     1.4  }
     1.5  
     1.6  size_t SDL_iconv(SDL_iconv_t cd,
     1.7 -                 char **inbuf, size_t *inbytesleft,
     1.8 +                 const char **inbuf, size_t *inbytesleft,
     1.9                   char **outbuf, size_t *outbytesleft)
    1.10  {
    1.11  	/* For simplicity, we'll convert everything to and from UCS-4 */
    1.12 -	char *src, *dst;
    1.13 +	const char *src;
    1.14 +	char *dst;
    1.15  	size_t srclen, dstlen;
    1.16  	Uint32 ch = 0;
    1.17  	size_t total;
    1.18 @@ -755,7 +756,7 @@
    1.19  
    1.20  #endif /* !HAVE_ICONV */
    1.21  
    1.22 -char *SDL_iconv_string(const char *tocode, const char *fromcode, char *inbuf, size_t inbytesleft)
    1.23 +char *SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft)
    1.24  {
    1.25  	SDL_iconv_t cd;
    1.26  	char *string;