Changeset 1644 for zzuf


Ignore:
Timestamp:
Jan 10, 2007, 6:25:09 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Oops, fixed an old OS X build failure.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/load-mem.c

    r1643 r1644  
    322322    {
    323323        /* FIXME: do we also have to rewind the filedescriptor like in mmap? */
    324         void *b = malloc(numbytes);
     324        char *b = malloc(numbytes);
    325325        memcpy(b, (void *)*addr, numbytes);
    326         _zz_fuzz(fd, b, numbytes);
     326        _zz_fuzz(fd, (void *)b, numbytes);
    327327        *addr = (vm_offset_t)b;
    328328        /* FIXME: the map is never freed; there is no such thing as unmap_fd,
Note: See TracChangeset for help on using the changeset viewer.