Ignore:
Timestamp:
Jul 24, 2007, 3:21:48 PM (13 years ago)
Author:
Bruno Cornec
Message:

Fix bugs reported in #179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-filelist.c

    r1548 r1551  
    434434    char *file_to_analyze = NULL;
    435435    char *strtmp = NULL;
     436    char *tmp = NULL;
    436437    int i;
    437438    size_t n = 0;
     
    458459        mr_msg(8, "Analyzing %s", file_to_analyze);
    459460        /* BERLIOS : to be checked */
    460         mr_asprintf(&strtmp, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", BACKSLASH));
     461        tmp = mr_stresc(file_to_analyze, "`$\\\"", BACKSLASH));
     462        mr_asprintf(&strtmp, syscall_sprintf, tmp);
     463        mr_free(tmp);
    461464        mr_asprintf(&sys_call, "%s 2>> /dev/null", strtmp);
    462465        mr_free(strtmp);
     
    704707
    705708    malloc_string(val_sz);
     709    strcpy(val_sz,"");
    706710    mr_asprintf(&cfg_fname, "%s/mondo-restore.cfg", bkpinfo->tmpdir);
    707711    read_cfg_var(cfg_fname, "last-filelist-number", val_sz);
Note: See TracChangeset for help on using the changeset viewer.