Mercurial > emacs
changeset 20946:3dbeb1555fa7
(Fmessage): Check byte size (instead of char size) of
VAL against MESSAGE_LENGTH.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 20 Feb 1998 11:14:32 +0000 |
parents | a9442d47edcb |
children | a66eb4a41765 |
files | src/editfns.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Fri Feb 20 11:14:32 1998 +0000 +++ b/src/editfns.c Fri Feb 20 11:14:32 1998 +0000 @@ -2072,7 +2072,7 @@ message_text = (char *)xmalloc (80); message_length = 80; } - if (XSTRING (val)->size > message_length) + if (XSTRING (val)->size_byte > message_length) { message_length = XSTRING (val)->size_byte; message_text = (char *)xrealloc (message_text, message_length);