Ignore:
Timestamp:
Aug 18, 2009, 2:34:29 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3327@localhost: bruno | 2009-08-04 00:17:46 +0200
popup_and_get_string and build_partition_name now return an allocated string

File:
1 edited

Legend:

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

    r2303 r2316  
    12811281        && (flag_set['c'] || flag_set['w'] || flag_set['C'])) {
    12821282        if (g_kernel_version >= 2.6) {
    1283             if (popup_and_get_string
    1284                 ("Device", "Please specify the device",
    1285                  bkpinfo->media_device, MAX_STR_LEN / 4)) {
     1283            tmp2 = popup_and_get_string("Device", "Please specify the device", bkpinfo->media_device);
     1284            if (tmp2 == NULL) {
    12861285                retval++;
    12871286                log_to_screen("User opted to cancel.");
    12881287            }
     1288            mr_free(tmp2);
    12891289        } else if (find_cdrw_device(bkpinfo->media_device)) {
    12901290            retval++;
Note: See TracChangeset for help on using the changeset viewer.