Changeset 863 in MondoRescue for trunk/mondo/src/common/libmondo-string.c


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

merge -r838:862 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.