Index: emacs/src/unexmacosx.c
diff -c emacs/src/unexmacosx.c:1.11 emacs/src/unexmacosx.c:1.12
*** emacs/src/unexmacosx.c:1.11 Fri May 13 08:41:03 2005
--- emacs/src/unexmacosx.c      Mon May 16 15:16:40 2005
***************
*** 1,5 ****
  /* Dump Emacs in Mach-O format for use on Mac OS X.
!    Copyright (C) 2001, 2002 Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
--- 1,5 ----
  /* Dump Emacs in Mach-O format for use on Mac OS X.
!    Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc.
  
  This file is part of GNU Emacs.
  
***************
*** 1069,1078 ****
  
        if (ptr_in_unexec_regions (old_ptr))
        {
-         p = (size_t *) malloc (new_size);
          size_t old_size = ((unexec_malloc_header_t *) old_ptr)[-1].u.size;
          size_t size = new_size > old_size ? old_size : new_size;
  
          if (size)
            memcpy (p, old_ptr, size);
        }
--- 1069,1078 ----
  
        if (ptr_in_unexec_regions (old_ptr))
        {
          size_t old_size = ((unexec_malloc_header_t *) old_ptr)[-1].u.size;
          size_t size = new_size > old_size ? old_size : new_size;
  
+         p = (size_t *) malloc (new_size);
          if (size)
            memcpy (p, old_ptr, size);
        }


_______________________________________________
Emacs-diffs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-diffs

Reply via email to