# HG changeset patch # User Karoly Lorentey # Date 1086480466 0 # Node ID 9b7814160efed1f3dbbc0d3ba073fec9d97828cf # Parent 3708519cf113710efeac99b52ca209d352c1ea50 Fix SEGV on terminals without 'IC' capability (Yoshiaki Kasahara). * src/term.c (tty_insert_glyphs): Added missing first parameter (contributed by Yoshiaki Kasahara ). (encode_terminal_code): Converted to use ANSI prototype syntax. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-187 diff -r 3708519cf113 -r 9b7814160efe src/term.c --- 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); }