summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-08-29 12:47:44 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-08-29 12:47:44 -0700
commit80f2e268a31679c363e0fa2c660d8dca53871aed (patch)
tree48f9c5b4071a410ea3c799cd9e81f01fc7e1c415 /src/term.c
parent31c286f79d43a002f441b90dc0176014ba0fa8e7 (diff)
* term.c (produce_glyphless_glyph): Make sprintf buffer a bit bigger
to avoid potential buffer overrun.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index f3bf3a947c..48d4069e20 100644
--- a/src/term.c
+++ b/src/term.c
@@ -1887,7 +1887,7 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym)
{
int face_id;
int len;
- char buf[9];
+ char buf[sizeof "\\x" + max (6, (sizeof it->c * CHAR_BIT + 3) / 4)];
char const *str = " ";
/* Get a face ID for the glyph by utilizing a cache (the same way as