Changeset 402 in MondoRescue for branches/stable/mondo/mondo/common/my-stuff.h
- Timestamp:
- Feb 17, 2006, 7:05:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/my-stuff.h
r296 r402 443 443 * Malloc @p x to be MAX_STR_LEN bytes and call fatal_error() if we're out of memory. 444 444 */ 445 #define malloc_string(x) { x = malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; }445 #define malloc_string(x) { x = (char *)malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; } 446 446 447 447 /**
Note:
See TracChangeset
for help on using the changeset viewer.