Commit 241424da authored by Eli Zaretskii's avatar Eli Zaretskii

(IT_write_glyphs): Allocate a larger screen_buf as data

produced for CODING_MODE_LAST_BLOCK requires.
parent 7565ee93
......@@ -940,6 +940,7 @@ IT_write_glyphs (struct glyph *str, int str_len)
encode_coding (coding, "", conversion_buffer, 0, conversion_buffer_size);
if (coding->produced > 0)
{
screen_buf = alloca (coding->produced * 2);
for (screen_bp = screen_buf, bp = conversion_buffer;
coding->produced--; bp++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment