From: Po Lu Date: Sat, 29 Oct 2022 10:21:51 +0000 (+0800) Subject: Fix another GCC warning X-Git-Tag: emacs-29.0.90~1616^2~396 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f826f56a413a07eee2782655809e1f5e102c6153;p=emacs.git Fix another GCC warning * src/nsterm.m (ns_draw_glyphless_glyph_string_foreground): Fix another compiler warning. --- 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; }