Changeset 520 in MondoRescue


Ignore:
Timestamp:
May 1, 2006, 2:01:46 AM (18 years ago)
Author:
bcornec
Message:

complete r514 in mondo-cli so that exclude|include_path are not truncated too early

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondoarchive/mondo-cli.c

    r503 r520  
    469469        strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths),
    470470                flag_val['I'],
    471                 MAX_STR_LEN - strlen(bkpinfo->include_paths));
     471                4*MAX_STR_LEN - strlen(bkpinfo->include_paths));
    472472        log_msg(1, "include_paths is now '%s'", bkpinfo->include_paths);
    473473        if (bkpinfo->include_paths[0] == '-') {
     
    704704        strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths),
    705705                flag_val['E'],
    706                 MAX_STR_LEN - strlen(bkpinfo->exclude_paths));
     706                4*MAX_STR_LEN - strlen(bkpinfo->exclude_paths));
    707707    }
    708708    if (flag_set['e']) {
Note: See TracChangeset for help on using the changeset viewer.