diff options
| author | Ken Brown <kbrown@cornell.edu> | 2018-07-21 12:15:22 -0400 |
|---|---|---|
| committer | Ken Brown <kbrown@cornell.edu> | 2018-07-21 12:18:45 -0400 |
| commit | f3f67cf0b9a6388d423e048a7aafad2eb531b5a5 (patch) | |
| tree | a52c698dd8df796d4faa0b9fca40727589c7e5c8 /src | |
| parent | d12215324bb201d5f8c9e2b52c9b8d2abf30b1f4 (diff) | |
| download | emacs-f3f67cf0b9a6388d423e048a7aafad2eb531b5a5.tar.gz | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32term.c b/src/w32term.c index ff0d2bf5ddb..0ae173a876b 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -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; } |
