aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e9068830f85..c8836b7ca78 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2005,9 +2005,9 @@ x_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
2005 } 2005 }
2006 else if (glyph->u.glyphless.method == GLYPHLESS_DISPLAY_HEX_CODE) 2006 else if (glyph->u.glyphless.method == GLYPHLESS_DISPLAY_HEX_CODE)
2007 { 2007 {
2008 sprintf (buf, "%0*X", 2008 unsigned int ch = glyph->u.glyphless.ch;
2009 glyph->u.glyphless.ch < 0x10000 ? 4 : 6, 2009 eassume (ch <= MAX_CHAR);
2010 glyph->u.glyphless.ch + 0u); 2010 sprintf (buf, "%0*X", ch < 0x10000 ? 4 : 6, ch);
2011 str = buf; 2011 str = buf;
2012 } 2012 }
2013 2013
@@ -8949,7 +8949,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8949 { 8949 {
8950 case MappingModifier: 8950 case MappingModifier:
8951 x_find_modifier_meanings (dpyinfo); 8951 x_find_modifier_meanings (dpyinfo);
8952 /* This is meant to fall through. */ 8952 FALLTHROUGH;
8953 case MappingKeyboard: 8953 case MappingKeyboard:
8954 XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping); 8954 XRefreshKeyboardMapping ((XMappingEvent *) &event->xmapping);
8955 } 8955 }