Changeset 1668


Ignore:
Timestamp:
Sep 28, 2007, 7:34:26 PM (12 years ago)
Author:
bruno
Message:

Try to fix the issue with large exclude list (> 1000 chars)
Some variables created after exclude_path (indirectly) were
not sized big enough to handle them.

Location:
branches/2.2.5/mondo/src/common
Files:
2 edited

Legend:

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

    r1645 r1668  
    726726    assert(bkpinfo != NULL);
    727727    command = malloc(1200);
    728     malloc_string(tmp);
     728    tmp = malloc(9*MAX_STR_LEN);
    729729    malloc_string(scratchdir);
    730730    malloc_string(use_lzo_sz);
  • branches/2.2.5/mondo/src/common/libmondo-filelist.c

    r1645 r1668  
    14871487
    14881488    malloc_string(tmp);
    1489     malloc_string(sth_B);
     1489    sth_B = malloc(8*MAX_STR_LEN);
    14901490    malloc_string(ith_B);
    14911491    malloc_string(new_with_spaces);
     
    17041704        fatal_error("Cannot malloc exclude_paths");
    17051705    }
    1706     log_msg(3, "Trying to write test string to exclude_paths");
    1707     strcpy(exclude_paths, "/blah /froo");
    1708     log_msg(3, "...Success!");
    17091706    sprintf(sz_datefile, sz_datefile_wildcard, 0);
    17101707    if (!include_paths && !userdef_filelist) {
Note: See TracChangeset for help on using the changeset viewer.