2012-03-24 Andreas Schwab <schwab@linux-m68k.org>
+ * xdisp.c (produce_glyphless_glyph): Limit length of acronym to 6
+ characters.
+
* xterm.c (XTread_socket): Only modify handling_signal if
!SYNC_INPUT. (Bug#11080)
sprintf (buf, "%0*X", it->c < 0x10000 ? 4 : 6, it->c);
str = buf;
}
- for (len = 0; str[len] && ASCII_BYTE_P (str[len]); len++)
+ for (len = 0; str[len] && ASCII_BYTE_P (str[len]) && len < 6; len++)
code[len] = font->driver->encode_char (font, str[len]);
upper_len = (len + 1) / 2;
font->driver->text_extents (font, code, upper_len,