summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/print.c b/src/print.c
index 32ee03050b3..2d1f13aadd5 100644
--- a/src/print.c
+++ b/src/print.c
@@ -316,9 +316,9 @@ printchar (ch, fun)
call1 (fun, make_number (ch));
else
{
- unsigned char work[4], *str;
- int len = CHAR_STRING (ch, work, str);
-
+ unsigned char str[MAX_MULTIBYTE_LENGTH];
+ int len = CHAR_STRING (ch, str);
+
QUIT;
if (NILP (fun))