Changeset 454 for trunk/src/sh_utils.c
- Timestamp:
- Jun 29, 2014, 7:30:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_utils.c
r444 r454 1255 1255 } 1256 1256 1257 if (NULL == (new = malloc(strlen(new_in) + 1)))1257 if (NULL == (new = calloc(1,strlen(new_in) + 1))) 1258 1258 goto bail_mem; 1259 1259 sl_strncpy(new, new_in, strlen(new_in) + 1); … … 1282 1282 len = strlen(path) + 1 + 4; 1283 1283 /*@-usedef@*/ 1284 if (NULL == (outpath = malloc(len)))1284 if (NULL == (outpath = calloc(1,len))) 1285 1285 goto bail_mem; 1286 1286 /*@-usedef@*/ … … 1310 1310 1311 1311 1312 image = malloc (4096);1312 image = calloc(1,4096); 1313 1313 if (!image) 1314 1314 goto bail_mem;
Note:
See TracChangeset
for help on using the changeset viewer.