1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +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*. */ *Messages*. */
if (!NILP (caller) && SYMBOLP (caller)) 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 (name, strlen (name), 0, 0);
message_dolog (": ", 2, 0, 0); message_dolog (": ", 2, 0, 0);
} }