aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-06-06 00:07:46 +0000
committerKaroly Lorentey2004-06-06 00:07:46 +0000
commit10f6d27dbaf7f57ad737b240e5ea504ae076a68f (patch)
tree5d7944eb03d28bb7899cc9e21f7976705843b619 /src
parent4181ad9cfe23605716cd373c493398f18f84fe02 (diff)
downloademacs-10f6d27dbaf7f57ad737b240e5ea504ae076a68f.tar.gz
emacs-10f6d27dbaf7f57ad737b240e5ea504ae076a68f.zip
Fix SEGV on terminals without 'IC' capability (Yoshiaki Kasahara).
* src/term.c (tty_insert_glyphs): Added missing first parameter (contributed by Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>). (encode_terminal_code): Converted to use ANSI prototype syntax. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-187
Diffstat (limited to 'src')
-rw-r--r--src/term.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/term.c b/src/term.c
index 396a24d7e5c..a0e46f45cbd 100644
--- a/src/term.c
+++ b/src/term.c
@@ -619,12 +619,12 @@ tty_clear_end_of_line (struct frame *f, int first_unused_hpos)
619 return value is the number of bytes store in DST. */ 619 return value is the number of bytes store in DST. */
620 620
621int 621int
622encode_terminal_code (coding, src, dst, src_len, dst_len, consumed) 622encode_terminal_code (struct coding_system *coding,
623 struct coding_system *coding; 623 struct glyph *src,
624 struct glyph *src; 624 unsigned char *dst,
625 int src_len; 625 int src_len,
626 unsigned char *dst; 626 int dst_len,
627 int dst_len, *consumed; 627 int *consumed)
628{ 628{
629 struct glyph *src_start = src, *src_end = src + src_len; 629 struct glyph *src_start = src, *src_end = src + src_len;
630 unsigned char *dst_start = dst, *dst_end = dst + dst_len; 630 unsigned char *dst_start = dst, *dst_end = dst + dst_len;
@@ -895,7 +895,8 @@ tty_insert_glyphs (struct frame *f, struct glyph *start, int len)
895 895
896 /* The size of conversion buffer (1024 bytes) is surely 896 /* The size of conversion buffer (1024 bytes) is surely
897 sufficient for just one glyph. */ 897 sufficient for just one glyph. */
898 produced = encode_terminal_code (glyph, conversion_buffer, 1, 898 produced = encode_terminal_code (FRAME_TERMINAL_CODING (f),
899 glyph, conversion_buffer, 1,
899 conversion_buffer_size, &consumed); 900 conversion_buffer_size, &consumed);
900 } 901 }
901 902