Changeset 1205 in MondoRescue for branches/stable/mondo/src/lib/mr_str.c


Ignore:
Timestamp:
Feb 26, 2007, 5:07:20 AM (17 years ago)
Author:
Bruno Cornec
Message:

Erase the end of the string in mr_strip_spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_str.c

    r1178 r1205  
    138138        in_out[j] = in_out[i];
    139139    }
     140    /* Erase the end of the string */
     141    j++;
     142    in_out[j] = '\0';
     143
    140144    /* Skip final spaces and special chars */
    141145    for (i = (int)strlen(in_out) - 1; in_out[i] <= ' ' && i >= 0 ; i--);
Note: See TracChangeset for help on using the changeset viewer.