Mercurial > emacs
comparison src/alloc.c @ 33800:7f148cfbd1f7
(Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of hard coded `4'.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 23 Nov 2000 04:48:08 +0000 |
parents | a832bb73de79 |
children | 773e6aa2ec38 |
comparison
equal
deleted
inserted
replaced
33799:77de13a8a918 | 33800:7f148cfbd1f7 |
---|---|
1626 while (p != end) | 1626 while (p != end) |
1627 *p++ = c; | 1627 *p++ = c; |
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); |
1635 val = make_uninit_multibyte_string (XINT (length), nbytes); | 1635 val = make_uninit_multibyte_string (XINT (length), nbytes); |
1636 p = XSTRING (val)->data; | 1636 p = XSTRING (val)->data; |