Ignore:
Timestamp:
Jun 19, 2009, 9:10:17 PM (15 years ago)
Author:
Bruno Cornec
Message:

Fix a bug (seg fault) when a too large mountlist was used. Increased MAXIMUM_DISKS_PER_RAID_DEV which serve as table allocation for drivelist, which should be as big as mountlist in fact ! (which it is still not, but is now sufficently large to be correct). Again dynamic memory allocation is the solution. Or perl ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-string.c

    r2230 r2237  
    843843    char *trunc = NULL;
    844844
     845    assert_string_is_neither_NULL_nor_zerolength(partition);
    845846    mr_asprintf(&trunc, "%s", partition);
    846847
     
    858859#else
    859860
    860     assert_string_is_neither_NULL_nor_zerolength(partition);
    861861    /* first see if it's a devfs style device */
    862862    c = strrchr(trunc, '/');
Note: See TracChangeset for help on using the changeset viewer.