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:
parent
e4dd341972
commit
11fb15d5c4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user