aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-12-08 13:22:14 +0100
committerJoakim Verona2012-12-08 13:22:14 +0100
commit64fde7a1daeff88ff057f43979fe8fa18094bd82 (patch)
treea6bc1a431824345f36b4af5dcb26c204c88cc41d
parent382215a36fafe855326b60456d67589f706f4cd1 (diff)
parentc56efa40745336c8067f047fe8f736821ddb3791 (diff)
downloademacs-64fde7a1daeff88ff057f43979fe8fa18094bd82.tar.gz
emacs-64fde7a1daeff88ff057f43979fe8fa18094bd82.zip
auto upstream
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32fns.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3e8b8519ba3..54985d33b59 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com>
2
3 * w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
4
12012-12-08 Eli Zaretskii <eliz@gnu.org> 52012-12-08 Eli Zaretskii <eliz@gnu.org>
2 6
3 * w32.c (unsetenv, sys_putenv): New functions. 7 * w32.c (unsetenv, sys_putenv): New functions.
diff --git a/src/w32fns.c b/src/w32fns.c
index 6801fc68054..1a181079c82 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -7784,7 +7784,7 @@ emacs_abort (void)
7784 /* stack[] gives the return addresses, whereas we want 7784 /* stack[] gives the return addresses, whereas we want
7785 the address of the call, so decrease each address 7785 the address of the call, so decrease each address
7786 by approximate size of 1 CALL instruction. */ 7786 by approximate size of 1 CALL instruction. */
7787 sprintf (buf, "0x%p\r\n", stack[j] - sizeof(void *)); 7787 sprintf (buf, "0x%p\r\n", (char *)stack[j] - sizeof(void *));
7788 if (stderr_fd >= 0) 7788 if (stderr_fd >= 0)
7789 write (stderr_fd, buf, strlen (buf)); 7789 write (stderr_fd, buf, strlen (buf));
7790 if (errfile_fd >= 0) 7790 if (errfile_fd >= 0)