Ignore:
Timestamp:
Apr 27, 2015, 4:25:28 PM (5 years ago)
Author:
Bruno Cornec
Message:

Change the bkpinfo->boot_device from statically allocated to dynamically allocated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-cli.c

    r3351 r3373  
    811811
    812812    if (flag_set['f']) {
    813         strncpy(bkpinfo->boot_device, resolve_softlinks_to_get_to_actual_device_file(flag_val['f']),MAX_STR_LEN / 4);
     813        mr_free(bkpinfo->boot_device);
     814        mr_asprintf(bkpinfo->boot_device, "%s", resolve_softlinks_to_get_to_actual_device_file(flag_val['f']));
    814815    }
    815816
Note: See TracChangeset for help on using the changeset viewer.