Changeset 454 for trunk/src/sstrip.c


Ignore:
Timestamp:
Jun 29, 2014, 7:30:04 AM (10 years ago)
Author:
katerina
Message:

Fix for ticket #355 (use calloc instead of malloc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sstrip.c

    r286 r454  
    178178
    179179    size = ehdr->e_phnum * sizeof **phdrs;
    180     if (!(*phdrs = malloc(size)))
     180    if (!(*phdrs = calloc(1,size)))
    181181        return err("Out of memory!");
    182182
     
    196196
    197197    size = ehdr->e_phnum * sizeof **phdrs;
    198     if (!(*phdrs = malloc(size)))
     198    if (!(*phdrs = calloc(1,size)))
    199199        return err("Out of memory!");
    200200
Note: See TracChangeset for help on using the changeset viewer.