Changeset 403 in MondoRescue for trunk/mondo/mondo/common/my-stuff.h


Ignore:
Timestamp:
Feb 18, 2006, 2:42:20 PM (18 years ago)
Author:
bcornec
Message:

merge -r397:402 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/my-stuff.h

    r300 r403  
    314314 * Malloc @p x to be MAX_STR_LEN bytes and call fatal_error() if we're out of memory.
    315315 */
    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'; }
    317317
    318318/**
Note: See TracChangeset for help on using the changeset viewer.