diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/term.c | 2 |
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 @@ | |||
| 1 | 2004-12-12 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * term.c (encode_terminal_code): Fix previous change. | ||
| 4 | |||
| 1 | 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * keyboard.c (handle_async_input): Remove pthread mutex handling. | 7 | * 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) | |||
| 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; |