Changeset 863 in MondoRescue for trunk/mondo/src/common


Ignore:
Timestamp:
Oct 2, 2006, 12:26:44 AM (18 years ago)
Author:
Bruno Cornec
Message:

merge -r838:862 $SVN_M/branches/stable

Location:
trunk/mondo/src/common
Files:
3 edited

Legend:

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

    r848 r863  
    457457        }
    458458        log_msg(8, "Analyzing %s", file_to_analyze);
    459         asprintf(&tmp, "%s 2>> /dev/null", syscall_sprintf);
    460         asprintf(&syscall, tmp, file_to_analyze);
    461         paranoid_free(tmp);
     459        /* BERLIOS : to be checked */
     460        asprintf(&syscall, "%s %s 2>> /dev/null", syscall_sprintf,mr_stresc(file_to_analyze, "`$\\\"", '\\'));
    462461        call_exe_and_pipe_output_to_fd(syscall, pout);
    463462        paranoid_free(syscall);
  • trunk/mondo/src/common/libmondo-string.c

    r783 r863  
    9393    for (p = in_out; *p == ' '; p++);
    9494    asprintf(&scratch, p);
     95    strip_spaces (scratch);
    9596    len = (int) strlen(scratch);
    9697    mid = width / 2;
     
    103104    paranoid_free(scratch);
    104105    in_out = out;
     106    for (i = x + len ; i < width - 1; i++) {
     107            in_out[i] = ' ';
     108        }
     109    in_out[i] = '\0';
    105110}
    106111
  • trunk/mondo/src/common/mr_string.c

    r839 r863  
    6767                // Found it, skip the rest.
    6868                cnt++;
     69                inptr++;
    6970                break;
    7071            }
Note: See TracChangeset for help on using the changeset viewer.