1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
This commit is contained in:
j123123 2017-07-05 14:31:06 +00:00 committed by GitHub
commit 1f42c9f361

View file

@ -206,16 +206,20 @@ do_convert(iconv_t cd, const char * src, int src_len,
{
switch(errno)
{
char * ret_tmp;
case E2BIG:
output_pos = (int)(outbuf - ret);
alloc_size += BYTES_INCREMENT;
outbytesleft += BYTES_INCREMENT;
ret_tmp = ret;
ret = realloc(ret, alloc_size);
if (ret == NULL)
{
cdio_warn("Can't realloc(%d).", alloc_size);
free(ret_tmp);
return false;
}
outbuf = ret + output_pos;