Ignore:
Timestamp:
Jul 24, 2009, 9:19:38 PM (11 years ago)
Author:
Bruno Cornec
Message:

find_tape_device_and_size => mr_find_tape_device which allocates 1 string to be freed by caller

File:
1 edited

Legend:

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

    r2301 r2303  
    12131213    mr_asprintf(&data_disks_file, "%s/all.tar.gz", bkpinfo->tmpdir);
    12141214
    1215     mr_sprintf(&g_serial_string, "%s", call_program_and_get_last_line_of_output("dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump | tr -s ' ' '0' | head -n1"));
     1215    mr_asprintf(&g_serial_string, "%s", call_program_and_get_last_line_of_output("dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump | tr -s ' ' '0' | head -n1"));
    12161216    strip_spaces(g_serial_string);
    12171217    mr_strcat(g_serial_string, "...word.");
Note: See TracChangeset for help on using the changeset viewer.