Ignore:
Timestamp:
May 6, 2014, 10:24:14 AM (6 years ago)
Author:
Bruno Cornec
Message:
  • change function number_of_disks_as_string into one returning a dynamically allocates tring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/mondorestore/mondo-rstr-newt.c

    r3236 r3289  
    15811581        mr_asprintf(title_of_editraidForm_window, "Edit %s", raidrec->raid_device);
    15821582        mr_asprintf(sz_raid_level, "%s", turn_raid_level_number_to_string(raidrec->raid_level));
    1583         mr_asprintf(sz_data_disks, "%s", number_of_disks_as_string(raidrec->data_disks.entries, "data"));
    1584         mr_asprintf(sz_spare_disks, "%s", number_of_disks_as_string(raidrec->spare_disks.entries, "spare"));
    1585         mr_asprintf(sz_parity_disks, "%s", number_of_disks_as_string(raidrec->parity_disks.entries, "parity"));
    1586         mr_asprintf(sz_failed_disks, "%s", number_of_disks_as_string(raidrec->failed_disks.entries, "failed"));
     1583        sz_data_disks = number_of_disks_as_string(raidrec->data_disks.entries, "data");
     1584        sz_spare_disks = number_of_disks_as_string(raidrec->spare_disks.entries, "spare");
     1585        sz_parity_disks = number_of_disks_as_string(raidrec->parity_disks.entries, "parity");
     1586        sz_failed_disks = number_of_disks_as_string(raidrec->failed_disks.entries, "failed");
    15871587        bSelectData = newtButton(1, 1, sz_data_disks);
    15881588        bSelectSpare = newtButton(20, 1, sz_spare_disks);
Note: See TracChangeset for help on using the changeset viewer.