diff src/unexmacosx.c @ 48535:e2e2249bea09

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
author Steven Tamm <steventamm@mac.com>
date Sun, 24 Nov 2002 22:56:59 +0000
parents 01b93e5e53a7
children 87aa7494d1da
line wrap: on
line diff
--- a/src/unexmacosx.c	Sun Nov 24 19:08:21 2002 +0000
+++ b/src/unexmacosx.c	Sun Nov 24 22:56:59 2002 +0000
@@ -888,7 +888,7 @@
 	/* 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)