Skip to content

Commit

Permalink
Whoops, need to actually copy inbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 28, 2007
1 parent 38e0504 commit 9a7313f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stdlib/SDL_iconv.c
Expand Up @@ -39,6 +39,7 @@ size_t SDL_iconv(SDL_iconv_t cd,
if ( inbuf && *inbuf && inbytesleft ) {
char *tmp = SDL_stack_alloc(char, *inbytesleft);
char *ptr = tmp;
SDL_memcpy(tmp, inbuf, *inbytesleft);
retCode = iconv(cd, &ptr, inbytesleft, outbuf, outbytesleft);
inbuf += (ptr - tmp);
SDL_stack_free(tmp);
Expand Down

0 comments on commit 9a7313f

Please sign in to comment.