changeset 58906:b55034e18dd2

(encode_terminal_code): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Sun, 12 Dec 2004 03:31:00 +0000
parents c32711499ab8
children 38f8dfd8ebe4
files src/term.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Sat Dec 11 23:51:45 2004 +0000
+++ b/src/term.c	Sun Dec 12 03:31:00 2004 +0000
@@ -819,11 +819,11 @@
   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;