Changeset 473 for trunk/src/sh_utils.c
- Timestamp:
- May 29, 2015, 10:42:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_utils.c
r454 r473 1315 1315 while (0 < (ii = sl_read (fp, &image[s], 4096))) 1316 1316 { 1317 unsigned char * ptr; 1317 1318 ilen += ii; 1318 1319 s += 4096; 1319 image = realloc (image, (size_t) (4096 + s)); 1320 ptr = realloc (image, (size_t) (4096 + s)); 1321 if (ptr) 1322 image = ptr; 1323 else 1324 { free(image); image = NULL; } 1320 1325 if (!image) 1321 1326 goto bail_mem;
Note:
See TracChangeset
for help on using the changeset viewer.