]> git.saurik.com Git - apple/libc.git/blobdiff - gmon/gmon.c
Libc-583.tar.gz
[apple/libc.git] / gmon / gmon.c
index 8d5710add1a525bc69d8a9805b4a9b231c18a013..bd5d9f4521db6851b49417ec1e8a04c32007a253 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999, 2003, 2004, 2007, 2008 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -475,7 +475,7 @@ const char *filename)
                write(fd, &image_count, sizeof(uint32_t));
                image_count++;
                for(i = 1; i < image_count; i++){
-                   image_header = _dyld_get_image_header(i);
+                   image_header = (intptr_t)_dyld_get_image_header(i);
                    write(fd, &image_header, sizeof(intptr_t));
                    image_name = _dyld_get_image_name(i);
                    write(fd, image_name, strlen(image_name) + 1);