Commit c56efa40 authored by Fabrice Popineau's avatar Fabrice Popineau Committed by Eli Zaretskii

w32fns.c (emacs_abort): Don't do arithmetics on void pointers.

parent 75ceee05
2012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com>
* w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
2012-12-08 Eli Zaretskii <eliz@gnu.org>
* w32.c (unsetenv, sys_putenv): New functions.
......
......@@ -7784,7 +7784,7 @@ emacs_abort (void)
/* stack[] gives the return addresses, whereas we want
the address of the call, so decrease each address
by approximate size of 1 CALL instruction. */
sprintf (buf, "0x%p\r\n", stack[j] - sizeof(void *));
sprintf (buf, "0x%p\r\n", (char *)stack[j] - sizeof(void *));
if (stderr_fd >= 0)
write (stderr_fd, buf, strlen (buf));
if (errfile_fd >= 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment