changeset 83147:9b7814160efe

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
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 06 Jun 2004 00:07:46 +0000
parents 3708519cf113
children 33462a853808
files src/term.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Sat Jun 05 22:34:24 2004 +0000
+++ b/src/term.c	Sun Jun 06 00:07:46 2004 +0000
@@ -619,12 +619,12 @@
    return value is the number of bytes store in DST.  */
 
 int
-encode_terminal_code (coding, src, dst, src_len, dst_len, consumed)
-     struct coding_system *coding;
-     struct glyph *src;
-     int src_len;
-     unsigned char *dst;
-     int dst_len, *consumed;
+encode_terminal_code (struct coding_system *coding,
+                      struct glyph *src,
+                      unsigned char *dst,
+                      int src_len,
+                      int dst_len,
+                      int *consumed)
 {
   struct glyph *src_start = src, *src_end = src + src_len;
   unsigned char *dst_start = dst, *dst_end = dst + dst_len;
@@ -895,7 +895,8 @@
 
 	  /* The size of conversion buffer (1024 bytes) is surely
 	     sufficient for just one glyph.  */
-	  produced = encode_terminal_code (glyph, conversion_buffer, 1,
+	  produced = encode_terminal_code (FRAME_TERMINAL_CODING (f),
+                                           glyph, conversion_buffer, 1,
 					   conversion_buffer_size, &consumed);
 	}