aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKenichi Handa2000-11-23 04:48:08 +0000
committerKenichi Handa2000-11-23 04:48:08 +0000
commitd942b71c340c317ffc6f35aca4c14279134107d2 (patch)
treed46a115f9da38b38cc16e02baa2e583dfd9d1689 /src/alloc.c
parent75056d401573f8c952ccaeec3d9a7aced8ba7884 (diff)
downloademacs-d942b71c340c317ffc6f35aca4c14279134107d2.tar.gz
emacs-d942b71c340c317ffc6f35aca4c14279134107d2.zip
(Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of hard coded `4'.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index ee4c52e53d3..df0ea1e5875 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1628,7 +1628,7 @@ Both LENGTH and INIT must be numbers.")
1628 } 1628 }
1629 else 1629 else
1630 { 1630 {
1631 unsigned char str[4]; 1631 unsigned char str[MAX_MULTIBYTE_LENGTH];
1632 int len = CHAR_STRING (c, str); 1632 int len = CHAR_STRING (c, str);
1633 1633
1634 nbytes = len * XINT (length); 1634 nbytes = len * XINT (length);