From: Ken Raeburn Date: Fri, 19 Jul 2002 14:37:32 +0000 (+0000) Subject: (encode_terminal_code): Buffer pointer now const. X-Git-Tag: ttn-vms-21-2-B4~13967 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=405ea71c67261d76afb50abc2e3f621a701a3987;p=emacs.git (encode_terminal_code): Buffer pointer now const. --- diff --git a/src/ChangeLog b/src/ChangeLog index 688b248e6a0..8ec634ca65f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -26,6 +26,8 @@ (vox_write): Buffer argument points to const. * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string contents as const. + * sysdep.c (emacs_write): Buffer pointer now const. + * term.c (encode_terminal_code): Buffer pointer now const. * xfaces.c (may_use_scalable_font_p): Argument now points to const. (x_face_list_fonts, x_update_menu_appearance): diff --git a/src/term.c b/src/term.c index 96fdc5c4798..3add820421e 100644 --- a/src/term.c +++ b/src/term.c @@ -810,7 +810,8 @@ encode_terminal_code (src, dst, src_len, dst_len, consumed) struct glyph *src_start = src, *src_end = src + src_len; unsigned char *dst_start = dst, *dst_end = dst + dst_len; register GLYPH g; - unsigned char workbuf[MAX_MULTIBYTE_LENGTH], *buf; + unsigned char workbuf[MAX_MULTIBYTE_LENGTH]; + const unsigned char *buf; int len; register int tlen = GLYPH_TABLE_LENGTH; register Lisp_Object *tbase = GLYPH_TABLE_BASE;