Changeset 2507


Ignore:
Timestamp:
Jan 4, 2010, 1:22:49 PM (9 years ago)
Author:
bruno
Message:
  • Fix #377: Segfault in pause_and_ask_for_cdr() (ggeens)
Location:
branches
Files:
2 edited

Legend:

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

    r2481 r2507  
    25322532    }
    25332533    log_to_screen("Scanning CD-ROM drive...");
    2534     sprintf(mtpt, "%s/cd.mtpt", bkpinfo->tmpdir);
     2534    mr_asprintf(mtpt, "%s/cd.mtpt", bkpinfo->tmpdir);
    25352535    make_hole_for_dir(mtpt);
    25362536
     
    26322632    mr_free(mds);
    26332633
    2634     paranoid_free(mtpt);
     2634    mr_free(mtpt);
    26352635    if (pmountable) {
    26362636        if (attempt_to_mount_returned_this) {
  • branches/2.2.9/mondo/src/common/libmondo-archive.c

    r2478 r2507  
    27172717    malloc_string(szserfname);
    27182718    malloc_string(szunmount);
     2719    malloc_string(mtpt);
    27192720
    27202721    mds = media_descriptor_string(g_backup_media_type);
Note: See TracChangeset for help on using the changeset viewer.