Changeset 1551 for branches/stable


Ignore:
Timestamp:
Jul 24, 2007, 3:21:48 PM (12 years ago)
Author:
bruno
Message:

Fix bugs reported in #179

Location:
branches/stable/mondo/src
Files:
2 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);
  • branches/stable/mondo/src/lib/mr_str.c

    r1241 r1551  
    7272                // Found it, skip the rest.
    7373                cnt++;
    74                 inptr++;
    7574                break;
    7675            }
    77             inptr++;
    7876            escptr++;
    7977        }
     78        inptr++;
    8079    }
    8180    inptr = instr;
Note: See TracChangeset for help on using the changeset viewer.