Ignore:
Timestamp:
May 6, 2014, 10:24:12 AM (6 years ago)
Author:
Bruno Cornec
Message:
  • Improve again memory management: remove some strcat calls change function percent_media_full_comment to return a dynamically allocated string
File:
1 edited

Legend:

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

    r3281 r3288  
    14161416                retval += res;
    14171417                g_current_progress++;
    1418                 mr_asprintf(media_usage_comment, "%s", percent_media_full_comment());
     1418                media_usage_comment = percent_media_full_comment();
    14191419                update_progress_form(media_usage_comment);
    14201420                mr_free(media_usage_comment);
     
    21702170        g_current_progress++;
    21712171
    2172         mr_asprintf(media_usage_comment, "%s", percent_media_full_comment());
     2172        media_usage_comment = percent_media_full_comment();
    21732173        update_progress_form(media_usage_comment);
    21742174        mr_free(media_usage_comment);
     
    28932893        mr_asprintf(curr_slice_fname_compressed, "%s", slice_fname(biggie_file_number, slice_num, bkpinfo->tmpdir, suffix));
    28942894
    2895         mr_asprintf(tmp, "%s", percent_media_full_comment());
     2895        tmp = percent_media_full_comment();
    28962896        update_progress_form(tmp);
    28972897        mr_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.