Ignore:
Timestamp:
Apr 22, 2014, 11:06:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug due to lack of memory allocation for a tmp var to display
  • Fix another bug in the call to labeling which used a bad variable
File:
1 edited

Legend:

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

    r3194 r3263  
    760760    flaws_str = evaluate_mountlist(mountlist);
    761761    if (flaws_str != NULL) {
    762         sprintf(tmp,
    763                 "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?",
    764                 flaws_str);
     762        mr_asprintf(tmp, "Mountlist analyzed. Result: \"%s\" Switch to Interactive Mode?", flaws_str);
    765763        mr_free(flaws_str);
    766764        if (ask_me_yes_or_no(tmp)) {
    767765            retval = interactive_mode(mountlist, raidlist);
     766            mr_free(tmp);
    768767            goto after_the_nuke;
    769768        } else {
     
    846845
    847846    mr_asprintf(tmp1, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", MINDI_CACHE"/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE);
    848     res = run_program_and_log_output(tmp, TRUE);
     847    res = run_program_and_log_output(tmp1, TRUE);
    849848    mr_free(tmp1);
    850849    if (res) {
Note: See TracChangeset for help on using the changeset viewer.