[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r111157: w32fns.c (emacs_abort): Don'
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r111157: w32fns.c (emacs_abort): Don't do arithmetics on void pointers. |
Date: |
Sat, 08 Dec 2012 14:11:29 +0200 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 111157
author: Fabrice Popineau <address@hidden>
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2012-12-08 14:11:29 +0200
message:
w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
modified:
src/ChangeLog
src/w32fns.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-12-08 11:32:10 +0000
+++ b/src/ChangeLog 2012-12-08 12:11:29 +0000
@@ -1,3 +1,7 @@
+2012-12-08 Fabrice Popineau <address@hidden>
+
+ * w32fns.c (emacs_abort): Don't do arithmetics on void pointers.
+
2012-12-08 Eli Zaretskii <address@hidden>
* w32.c (unsetenv, sys_putenv): New functions.
=== modified file 'src/w32fns.c'
--- a/src/w32fns.c 2012-12-06 13:48:11 +0000
+++ b/src/w32fns.c 2012-12-08 12:11:29 +0000
@@ -7784,7 +7784,7 @@
/* 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r111157: w32fns.c (emacs_abort): Don't do arithmetics on void pointers.,
Eli Zaretskii <=