Mercurial > emacs
comparison src/term.c @ 58906:b55034e18dd2
(encode_terminal_code): Fix previous change.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Sun, 12 Dec 2004 03:31:00 +0000 |
parents | 24c51e9d8586 |
children | e25d041a3a6e 4ee39d9428b0 |
comparison
equal
deleted
inserted
replaced
58905:c32711499ab8 | 58906:b55034e18dd2 |
---|---|
817 multibyte-form. But, it may be enlarged on demand if | 817 multibyte-form. But, it may be enlarged on demand if |
818 Vglyph_table contains a string. */ | 818 Vglyph_table contains a string. */ |
819 required = MAX_MULTIBYTE_LENGTH * src_len; | 819 required = MAX_MULTIBYTE_LENGTH * src_len; |
820 if (encode_terminal_bufsize < required) | 820 if (encode_terminal_bufsize < required) |
821 { | 821 { |
822 encode_terminal_bufsize = required; | |
823 if (encode_terminal_bufsize == 0) | 822 if (encode_terminal_bufsize == 0) |
824 encode_terminal_buf = xmalloc (required); | 823 encode_terminal_buf = xmalloc (required); |
825 else | 824 else |
826 encode_terminal_buf = xrealloc (encode_terminal_buf, required); | 825 encode_terminal_buf = xrealloc (encode_terminal_buf, required); |
826 encode_terminal_bufsize = required; | |
827 } | 827 } |
828 | 828 |
829 buf = encode_terminal_buf; | 829 buf = encode_terminal_buf; |
830 nchars = 0; | 830 nchars = 0; |
831 while (src < src_end) | 831 while (src < src_end) |