Skip to content
Permalink
Browse files

Whoops, need to actually copy inbuf

  • Loading branch information
slouken committed Jun 28, 2007
1 parent 38e0504 commit 9a7313fb7937d5cab546295b305370cdde92b110
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/stdlib/SDL_iconv.c
@@ -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);

0 comments on commit 9a7313f

Please sign in to comment.