Ignore:
Timestamp:
Sep 19, 2007, 9:32:00 AM (17 years ago)
Author:
Bruno Cornec
Message:

Continue to use configuration file data (may not compile)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-devices.c

    r1609 r1638  
    17941794        mr_free(command);
    17951795
     1796        mr_asprintf(&tmp, mr_conf->prefix);
    17961797        if (!popup_and_get_string
    17971798            ("Prefix.",
    17981799             "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files",
    1799             bkpinfo->prefix, MAX_STR_LEN / 4)) {
     1800            tmp, MAX_STR_LEN / 4)) {
    18001801            log_to_screen("User has chosen not to backup the PC");
    18011802            finish(1);
    18021803        }
     1804        mr_free(bkpinfo->prefix);
     1805        bkpinfo->prefix = tmp;
    18031806        mr_msg(3, "prefix set to %s", bkpinfo->prefix);
    18041807
     
    18511854            }
    18521855        }
     1856        mr_asprintf(&tmp, mr_conf->prefix);
    18531857        if (!popup_and_get_string
    18541858            ("Prefix.",
    18551859             "Please enter the prefix that will be prepended to your ISO filename.  Example: machine1 to obtain machine1-[1-9]*.iso files",
    1856              bkpinfo->prefix, MAX_STR_LEN / 4)) {
     1860             tmp, MAX_STR_LEN / 4)) {
    18571861            log_to_screen("User has chosen not to backup the PC");
    18581862            finish(1);
    18591863        }
     1864        mr_free(bkpinfo->prefix);
     1865        bkpinfo->prefix = tmp;
    18601866        mr_msg(3, "prefix set to %s", bkpinfo->prefix);
    18611867        break;
Note: See TracChangeset for help on using the changeset viewer.