mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-19 18:13:55 +00:00
Pacify GCC 7 with -Wformat-overflow
* src/w32term.c (x_draw_glyphless_glyph_string_foreground): Force sprintf to write at most 6 bytes, excluding the terminating null byte.
This commit is contained in:
parent
d12215324b
commit
f3f67cf0b9
@ -1476,7 +1476,7 @@ x_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
|
||||
{
|
||||
sprintf ((char *) buf, "%0*X",
|
||||
glyph->u.glyphless.ch < 0x10000 ? 4 : 6,
|
||||
(unsigned int) glyph->u.glyphless.ch);
|
||||
(unsigned int) glyph->u.glyphless.ch & 0xffffff);
|
||||
str = buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user