]> git.eshelyaron.com Git - emacs.git/commitdiff
w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
authorFabrice Popineau <fabrice.popineau@gmail.com>
Sat, 8 Dec 2012 12:11:29 +0000 (14:11 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Dec 2012 12:11:29 +0000 (14:11 +0200)
src/ChangeLog
src/w32fns.c

index 3e8b8519ba3eeda8b8cbb01edbbdb73e40f8b37c..54985d33b594f1bbd798352db8123546eb4d9965 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 6801fc680545e0835def7131a0acdf6bdea9c8d5..1a181079c828e1515039775081e59ad3fb491095 100644 (file)
@@ -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)