Ignore:
Timestamp:
Nov 10, 2016, 9:09:54 PM (7 years ago)
Author:
Bruno Cornec
Message:

Remove more static allocation

File:
1 edited

Legend:

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

    r3610 r3611  
    11161116    /*@ buffers *************** */
    11171117    char *tmp = NULL;
     1118    char *tmp1 = NULL;
    11181119    char *mds = NULL;
    11191120
     
    11421143        scratchLL++;
    11431144    }
     1145    tmp1 = number_to_text((int) (scratchLL + 1));
    11441146    if (scratchLL <= 1) {
    11451147        mds = media_descriptor_string(bkpinfo->backup_media_type);
    11461148        mr_asprintf(tmp, "Your backup will probably occupy a single %s. Maybe two.", mds);
    11471149        mr_free(mds);
    1148     } else if (scratchLL > 4) {
    1149         mr_asprintf(tmp, "Your backup will occupy one meeeeellion media! (maybe %s)", number_to_text((int) (scratchLL + 1)));
     1150    } else if (scratchLL > 5) {
     1151        mr_asprintf(tmp, "Your backup will occupy one meeeeellion media! (maybe %s)", tmp1);
    11501152    } else {
    1151         mr_asprintf(tmp, "Your backup will occupy approximately %s media.", number_to_text((int) (scratchLL + 1)));
     1153        mr_asprintf(tmp, "Your backup will occupy approximately %s media.", tmp1);
    11521154    }
    11531155    if (scratchLL < 50) {
    11541156        log_to_screen(tmp);
    11551157    }
     1158    mr_free(tmp1);
    11561159    mr_free(tmp);
    11571160}
Note: See TracChangeset for help on using the changeset viewer.