1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Fixed problem of converting more thant 256 chars.

This commit is contained in:
Bin Guo 2014-02-13 22:27:44 -05:00 committed by Witold Filipczyk
parent e6c0f0a253
commit 7553d321a1

View File

@ -1338,7 +1338,7 @@ convert_string(struct conv_table *convert_table,
repeat:
to_copy = charslen2 - chars_offset;
if (to_copy > 256 - iconv_offset) to_copy = 256 - iconv_offset;
memcpy(iconv_input + iconv_offset, chars + chars_offset, to_copy);
memcpy(iconv_input + iconv_offset, chars2 + chars_offset, to_copy);
iconv_outleft = 256 * 8;
iconv_inleft = iconv_offset + to_copy;
inp = iconv_input;