From: Kenichi Handa Date: Sun, 12 Dec 2004 03:33:50 +0000 (+0000) Subject: (encode_terminal_code): Fix previous change. X-Git-Tag: ttn-vms-21-2-B4~3317 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d6d31e570aa7a97eb2869922e895f5aedbefe7f3;p=emacs.git (encode_terminal_code): Fix previous change. --- diff --git a/src/ChangeLog b/src/ChangeLog index 13081617835..e8bf5277e0e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-12-12 Kenichi Handa + + * term.c (encode_terminal_code): Fix previous change. + 2004-12-11 Stefan Monnier * keyboard.c (handle_async_input): Remove pthread mutex handling. diff --git a/src/term.c b/src/term.c index c40197337d8..4164a3bc0d3 100644 --- a/src/term.c +++ b/src/term.c @@ -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;