Changeset 403 in MondoRescue for trunk/mondo/mondo/common/my-stuff.h
- Timestamp:
- Feb 18, 2006, 2:42:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/my-stuff.h
r300 r403 314 314 * Malloc @p x to be MAX_STR_LEN bytes and call fatal_error() if we're out of memory. 315 315 */ 316 #define malloc_string(x) { x = malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; }316 #define malloc_string(x) { x = (char *)malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; } 317 317 318 318 /**
Note:
See TracChangeset
for help on using the changeset viewer.