Changeset 2743 in MondoRescue


Ignore:
Timestamp:
Mar 20, 2011, 1:37:40 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • Fix a seg fault bug when using the GUI in case exclude_paths was NULL (mc_at_carreira.com.pt)
File:
1 edited

Legend:

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

    r2717 r2743  
    26882688        }
    26892689
    2690         strncpy(p,bkpinfo->exclude_paths,(8*MAX_STR_LEN)-1);
     2690        if (bkpinfo->exclude_paths != NULL ) {
     2691            strncpy(p,bkpinfo->exclude_paths,(8*MAX_STR_LEN)-1);
     2692        } else {
     2693            p[0] = '\0';
     2694        }
    26912695        popup_and_get_string("Exclude paths", "Please enter paths which you do NOT want to backup. Separate them with '|'. NB: /tmp and /proc are always excluded. :-) Just hit 'Enter' if you want to do a full system backup.", p, (8*MAX_STR_LEN)-1);
    26922696        if (p == NULL) {
Note: See TracChangeset for help on using the changeset viewer.