Ignore:
Timestamp:
Mar 3, 2024, 2:44:57 AM (3 months ago)
Author:
Bruno Cornec
Message:

manages media_device dynamically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/mondorestore/mondo-rstr-compare.c

    r3613 r3822  
    656656    if (bkpinfo->disaster_recovery
    657657        && does_file_exist("/tmp/CDROM-LIVES-HERE")) {
    658         strcpy(bkpinfo->media_device,
    659                last_line_of_file("/tmp/CDROM-LIVES-HERE"));
     658        mr_asprintf(bkpinfo->media_device, "%s", last_line_of_file("/tmp/CDROM-LIVES-HERE"));
    660659    } else {
    661660        find_cdrom_device(bkpinfo->media_device, FALSE);
Note: See TracChangeset for help on using the changeset viewer.