summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2004-12-12 03:33:50 +0000
committerKenichi Handa <handa@m17n.org>2004-12-12 03:33:50 +0000
commitd6d31e570aa7a97eb2869922e895f5aedbefe7f3 (patch)
tree363b5fdc97ec0cf14e7bf762775683b3f2e58537 /src
parentfb6f5cbf9dfc67d421b418ec9dc085f388bab935 (diff)
downloademacs-d6d31e570aa7a97eb2869922e895f5aedbefe7f3.tar.gz
(encode_terminal_code): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/term.c2
2 files changed, 5 insertions, 1 deletions
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 <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.
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;