Changeset 454 for trunk/src/sstrip.c
- Timestamp:
- Jun 29, 2014, 7:30:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sstrip.c
r286 r454 178 178 179 179 size = ehdr->e_phnum * sizeof **phdrs; 180 if (!(*phdrs = malloc(size)))180 if (!(*phdrs = calloc(1,size))) 181 181 return err("Out of memory!"); 182 182 … … 196 196 197 197 size = ehdr->e_phnum * sizeof **phdrs; 198 if (!(*phdrs = malloc(size)))198 if (!(*phdrs = calloc(1,size))) 199 199 return err("Out of memory!"); 200 200
Note:
See TracChangeset
for help on using the changeset viewer.