diff options
| author | Po Lu | 2022-10-29 18:21:51 +0800 |
|---|---|---|
| committer | Po Lu | 2022-10-29 18:22:28 +0800 |
| commit | f826f56a413a07eee2782655809e1f5e102c6153 (patch) | |
| tree | 6fed3716a9f7ea0c41d5eee81ad570fd23539548 /src | |
| parent | 6f3d8ec4f5f4107e2a14a0bd154b61e05a4586c7 (diff) | |
| download | emacs-f826f56a413a07eee2782655809e1f5e102c6153.tar.gz emacs-f826f56a413a07eee2782655809e1f5e102c6153.zip | |
Fix another GCC warning
* src/nsterm.m (ns_draw_glyphless_glyph_string_foreground): Fix
another compiler warning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 4 |
1 files 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) | |||
| 4242 | #else | 4242 | #else |
| 4243 | enum { PACIFY_GCC_BUG_81401 = 0 }; | 4243 | enum { PACIFY_GCC_BUG_81401 = 0 }; |
| 4244 | #endif | 4244 | #endif |
| 4245 | char buf[7 + PACIFY_GCC_BUG_81401]; | 4245 | char buf[8 + PACIFY_GCC_BUG_81401]; |
| 4246 | char *str = NULL; | 4246 | char *str = NULL; |
| 4247 | int len = glyph->u.glyphless.len; | 4247 | int len = glyph->u.glyphless.len; |
| 4248 | 4248 | ||
| @@ -4268,7 +4268,7 @@ ns_draw_glyphless_glyph_string_foreground (struct glyph_string *s) | |||
| 4268 | { | 4268 | { |
| 4269 | unsigned int ch = glyph->u.glyphless.ch; | 4269 | unsigned int ch = glyph->u.glyphless.ch; |
| 4270 | eassume (ch <= MAX_CHAR); | 4270 | eassume (ch <= MAX_CHAR); |
| 4271 | snprintf (buf, 7, "%0*X", ch < 0x10000 ? 4 : 6, ch); | 4271 | snprintf (buf, 8, "%0*X", ch < 0x10000 ? 4 : 6, ch); |
| 4272 | str = buf; | 4272 | str = buf; |
| 4273 | } | 4273 | } |
| 4274 | 4274 | ||