comparison src/stdlib/SDL_iconv.c @ 3984:b74530a1dad6 SDL-1.2

Better fix for bug 419
author Sam Lantinga <slouken@libsdl.org>
date Thu, 28 Jun 2007 05:35:50 +0000
parents f16c15f3bc2b
children 2f8efcf14c83
comparison
equal deleted inserted replaced
3983:540466e900db 3984:b74530a1dad6
29 #ifdef HAVE_ICONV 29 #ifdef HAVE_ICONV
30 30
31 #include <errno.h> 31 #include <errno.h>
32 32
33 size_t SDL_iconv(SDL_iconv_t cd, 33 size_t SDL_iconv(SDL_iconv_t cd,
34 char **inbuf, size_t *inbytesleft, 34 const char **inbuf, size_t *inbytesleft,
35 char **outbuf, size_t *outbytesleft) 35 char **outbuf, size_t *outbytesleft)
36 { 36 {
37 size_t retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft); 37 size_t retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
38 if ( retCode == (size_t)-1 ) { 38 if ( retCode == (size_t)-1 ) {
39 switch(errno) { 39 switch(errno) {