Ignore:
Timestamp:
Mar 7, 2024, 12:52:46 AM (3 months ago)
Author:
Bruno Cornec
Message:

remove center_string function to keep only mr_center_string

File:
1 edited

Legend:

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

    r3856 r3858  
    29812981
    29822982    /*@ buffers ************************************************** */
    2983     char *tmp;
    2984 
    2985     malloc_string(tmp);
     2983    char *tmp = NULL;
     2984
    29862985    assert(bkpinfo != NULL);
    2987 
    2988 // I should really check if there are any slices or tarballs to be copied to CD-R(W)'s; the odds are approx. 1 in a million that there are no files here, so I'll just go ahead & make one more CD anyway
    2989 
    2990     sprintf(tmp, "Writing the final ISO");
     2986    // I should really check if there are any slices or tarballs to be copied to CD-R(W)'s; the odds are approx. 1 in a million that there are no files here, so I'll just go ahead & make one more CD anyway
     2987
     2988    tmp = mr_center_string("Writing the final ISO", 80);
    29912989    log_msg(2, tmp);
    2992     center_string(tmp, 80);
    29932990    if (!g_text_mode) {
    29942991        newtPushHelpLine(tmp);
    29952992    }
     2993    mr_free(tmp);
    29962994    res = write_iso_and_go_on(TRUE);
    29972995    if (!g_text_mode) {
     
    29992997    }
    30002998    log_msg(2, "Returning from writing final ISO (res=%d)", res);
    3001     paranoid_free(tmp);
    30022999    return (res);
    30033000}
Note: See TracChangeset for help on using the changeset viewer.