]> git.eshelyaron.com Git - emacs.git/commitdiff
(encode_terminal_code): Fix previous change.
authorKenichi Handa <handa@m17n.org>
Sun, 12 Dec 2004 03:33:50 +0000 (03:33 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 12 Dec 2004 03:33:50 +0000 (03:33 +0000)
src/ChangeLog
src/term.c

index 13081617835491e275f9ef716e6f7b1f5d8e26df..e8bf5277e0e620a227dee07521de38a8abbc305f 100644 (file)
@@ -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.
index c40197337d8634889ec38212724804a57f480b74..4164a3bc0d36028455e04212aa9901d53f87796e 100644 (file)
@@ -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;