Ignore:
Timestamp:
Aug 18, 2009, 3:19:54 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3337@localhost: bruno | 2009-08-11 20:02:18 +0200
bkpinfo->boot_device and bkpinfo->zip_exe are now dynamically allocated

File:
1 edited

Legend:

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

    r2325 r2326  
    13261326
    13271327    if (flag_set['f']) {
    1328         strncpy(bkpinfo->boot_device,
    1329                 resolve_softlinks_to_get_to_actual_device_file(flag_val
    1330                                                                ['f']),
    1331                 MAX_STR_LEN / 4);
     1328        mr_free(bkpinfo->boot_device);
     1329        mr_asprintf(bkpinfo->boot_device, "%s", resolve_softlinks_to_get_to_actual_device_file(flag_val['f']));
    13321330    }
    13331331
Note: See TracChangeset for help on using the changeset viewer.