emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f826f56a41 2/2: Fix another GCC warning


From: Po Lu
Subject: master f826f56a41 2/2: Fix another GCC warning
Date: Sat, 29 Oct 2022 06:22:41 -0400 (EDT)

branch: master
commit f826f56a413a07eee2782655809e1f5e102c6153
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 e70463b987..17f40dc7e3 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;
        }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]