Ignore:
Timestamp:
Aug 18, 2009, 2:37:25 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3330@localhost: bruno | 2009-08-05 00:48:36 +0200
bkpinfo->include_paths is now dynamically allocated

File:
1 edited

Legend:

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

    r2318 r2319  
    19271927        }
    19281928        bkpinfo->boot_loader = i;
    1929         strcpy(bkpinfo->include_paths, "/");
     1929        mr_free(bkpinfo->include_paths);
     1930        mr_asprintf(&p, "/");
     1931        bkpinfo->include_paths = p;
     1932
    19301933        p = popup_and_get_string("Backup paths", "Please enter paths which you want me to backup. The default is '/' (i.e. everything).", bkpinfo->include_paths);
    19311934        if (p == NULL) {
     
    19331936            finish(1);
    19341937        }
    1935         strcpy(bkpinfo->include_paths, p);
    1936         mr_free(p);
     1938        mr_free(bkpinfo->include_paths);
     1939        bkpinfo->include_paths = p;
    19371940
    19381941        mr_asprintf(&tmp, "%s", list_of_NFS_mounts_only());
Note: See TracChangeset for help on using the changeset viewer.