Mercurial > emacs
comparison src/xdisp.c @ 28876:04cbb0510d7e
(add_to_log): Pass 1 byte less to message_dolog.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 11 May 2000 15:43:37 +0000 |
parents | 91b54118e73c |
children | f8b0ac62f238 |
comparison
equal
deleted
inserted
replaced
28875:e1d006c5bcde | 28876:04cbb0510d7e |
---|---|
4700 | 4700 |
4701 len = STRING_BYTES (XSTRING (msg)) + 1; | 4701 len = STRING_BYTES (XSTRING (msg)) + 1; |
4702 buffer = (char *) alloca (len); | 4702 buffer = (char *) alloca (len); |
4703 strcpy (buffer, XSTRING (msg)->data); | 4703 strcpy (buffer, XSTRING (msg)->data); |
4704 | 4704 |
4705 message_dolog (buffer, len, 1, 0); | 4705 message_dolog (buffer, len - 1, 1, 0); |
4706 UNGCPRO; | 4706 UNGCPRO; |
4707 } | 4707 } |
4708 | 4708 |
4709 | 4709 |
4710 /* Output a newline in the *Messages* buffer if "needs" one. */ | 4710 /* Output a newline in the *Messages* buffer if "needs" one. */ |