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:
parent
e6c0f0a253
commit
7553d321a1
@ -1338,7 +1338,7 @@ convert_string(struct conv_table *convert_table,
|
|||||||
repeat:
|
repeat:
|
||||||
to_copy = charslen2 - chars_offset;
|
to_copy = charslen2 - chars_offset;
|
||||||
if (to_copy > 256 - iconv_offset) to_copy = 256 - iconv_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_outleft = 256 * 8;
|
||||||
iconv_inleft = iconv_offset + to_copy;
|
iconv_inleft = iconv_offset + to_copy;
|
||||||
inp = iconv_input;
|
inp = iconv_input;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user