src/stdlib/SDL_iconv.c
branchSDL-1.2
changeset 3986 4f73308bbb32
parent 3985 2f8efcf14c83
child 3987 00486a9c2893
     1.1 --- a/src/stdlib/SDL_iconv.c	Thu Jun 28 06:47:35 2007 +0000
     1.2 +++ b/src/stdlib/SDL_iconv.c	Thu Jun 28 06:53:09 2007 +0000
     1.3 @@ -39,6 +39,7 @@
     1.4  	if ( inbuf && *inbuf && inbytesleft ) {
     1.5  		char *tmp = SDL_stack_alloc(char, *inbytesleft);
     1.6  		char *ptr = tmp;
     1.7 +		SDL_memcpy(tmp, inbuf, *inbytesleft);
     1.8  		retCode = iconv(cd, &ptr, inbytesleft, outbuf, outbytesleft);
     1.9  		inbuf += (ptr - tmp);
    1.10  		SDL_stack_free(tmp);