* xdisp.c (produce_glyphless_glyph): Make a pointer "const"
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Mar 2011 08:14:14 +0000 (00:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Mar 2011 08:14:14 +0000 (00:14 -0800)
since it might point to immutable storage.

src/ChangeLog
src/xdisp.c

index 5dd7a77..0ebc363 100644 (file)
@@ -9,6 +9,8 @@
        (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
        Rename or move local decls.
        * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
+       (produce_glyphless_glyph): Make a pointer "const"
+       since it might point to immutable storage.
 
 2011-03-06  Michael Shields  <shields@msrl.com>  (tiny change)
 
index 8cdb590..818c4c3 100644 (file)
@@ -22267,7 +22267,8 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
     }
   else
     {
-      char buf[7], *str;
+      char buf[7];
+      const char *str;
       unsigned int code[6];
       int upper_len;
       int ascent, descent;