1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

(print_error_message): Pass copy of caller name to message_dolog.

This commit is contained in:
Kim F. Storm 2005-09-12 13:42:40 +00:00
parent e4dd341972
commit 11fb15d5c4

View File

@ -1025,7 +1025,9 @@ print_error_message (data, stream, context, caller)
*Messages*. */
if (!NILP (caller) && SYMBOLP (caller))
{
const char *name = SDATA (SYMBOL_NAME (caller));
Lisp_Object cname = SYMBOL_NAME (caller);
char *name = alloca (SBYTES (cname));
bcopy (SDATA (cname), name, SBYTES (cname));
message_dolog (name, strlen (name), 0, 0);
message_dolog (": ", 2, 0, 0);
}