Ignore:
Timestamp:
Sep 9, 2007, 3:14:36 AM (13 years ago)
Author:
Bruno Cornec
Message:

prefix is also now read from conf file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondorestore.c

    r1626 r1628  
    438438    read_cfg_file_into_bkpinfo(g_mondo_cfg_file, bkpinfo);
    439439    iamhere("Done loading config file; resizing ML");
    440     strcpy(tmp, bkpinfo->prefix);
    441440    if (popup_and_get_string
    442         ("Prefix", "Prefix of your ISO images ?", tmp, MAX_STR_LEN / 4)) {
    443         strcpy(bkpinfo->prefix, tmp);
     441        ("Prefix", "Prefix of your ISO images ?", bkpinfo->prefix, MAX_STR_LEN / 4)) {
    444442        mr_msg(1, "Prefix set to %s",bkpinfo->prefix);
    445443    }
     
    30473045
    30483046    if (argc == 3 && strcmp(argv[1], "-p") == 0) {
    3049         strcpy(bkpinfo->prefix,argv[2]);
     3047        mr_allocstr(bkpinfo->prefix,argv[2]);
    30503048        mr_msg(1,"Prefix forced to %s",bkpinfo->prefix);
    30513049    }
Note: See TracChangeset for help on using the changeset viewer.