Commit 82122254 authored by Steven Tamm's avatar Steven Tamm

Use malloc_default_zone to determine the size of pointers alloced in unexec

space instead of using possibly invalid emacs_zone pointers.  This fixes
the binary incompatibility problems caused by updates to libSystem.B
parent 877db12e
2002-11-24 Steven Tamm <steventamm@mac.com>
* unexmacosx.c (unexec_realloc): Use malloc_default_zone to
determine the size of pointers alloced in unexed space instead
of using possibly invalid emacs_zone pointers. This fixes the
binary incompatibility problems caused by updates to libSystem.B.
2002-11-24 Richard M. Stallman <rms@gnu.org>
* search.c (Fstring_match): Doc fix.
......
......@@ -888,7 +888,7 @@ unexec_realloc (void *old_ptr, size_t new_size)
/* 2002-04-15 T. Ikegami <ikegami@adam.uprr.pr>. The original
code to get size failed to reallocate read_buffer
(lread.c). */
int old_size = emacs_zone->size (emacs_zone, old_ptr);
int old_size = malloc_default_zone()->size (emacs_zone, old_ptr);
int size = new_size > old_size ? old_size : new_size;
if (size)
......
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