Commit d6d31e57 authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(encode_terminal_code): Fix previous change.

parent fb6f5cbf
2004-12-12 Kenichi Handa <handa@m17n.org>
* term.c (encode_terminal_code): Fix previous change.
2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
 
* keyboard.c (handle_async_input): Remove pthread mutex handling.
......
......@@ -819,11 +819,11 @@ encode_terminal_code (src, src_len, coding)
required = MAX_MULTIBYTE_LENGTH * src_len;
if (encode_terminal_bufsize < required)
{
encode_terminal_bufsize = required;
if (encode_terminal_bufsize == 0)
encode_terminal_buf = xmalloc (required);
else
encode_terminal_buf = xrealloc (encode_terminal_buf, required);
encode_terminal_bufsize = required;
}
buf = encode_terminal_buf;
......
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