From f826f56a413a07eee2782655809e1f5e102c6153 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 29 Oct 2022 18:21:51 +0800 Subject: [PATCH] Fix another GCC warning * src/nsterm.m (ns_draw_glyphless_glyph_string_foreground): Fix another compiler warning. --- src/nsterm.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nsterm.m b/src/nsterm.m index e70463b9877..17f40dc7e37 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4242,7 +4242,7 @@ ns_draw_glyphless_glyph_string_foreground (struct glyph_string *s) #else enum { PACIFY_GCC_BUG_81401 = 0 }; #endif - char buf[7 + PACIFY_GCC_BUG_81401]; + char buf[8 + PACIFY_GCC_BUG_81401]; char *str = NULL; int len = glyph->u.glyphless.len; @@ -4268,7 +4268,7 @@ ns_draw_glyphless_glyph_string_foreground (struct glyph_string *s) { unsigned int ch = glyph->u.glyphless.ch; eassume (ch <= MAX_CHAR); - snprintf (buf, 7, "%0*X", ch < 0x10000 ? 4 : 6, ch); + snprintf (buf, 8, "%0*X", ch < 0x10000 ? 4 : 6, ch); str = buf; } -- 2.39.5