mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Whoops, need to actually copy inbuf
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user