--- 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;