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


Ignore:
Timestamp:
Feb 27, 2007, 2:08:10 PM (17 years ago)
Author:
Bruno Cornec
Message:

Fixing another valgrind bug for mr_strip_spaces (order matters :-)

File:
1 edited

Legend:

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

    r1215 r1217  
    145145
    146146    /* Skip final spaces and special chars */
    147     for (i = (int)strlen(in_out) - 1; in_out[i] <= ' ' && i >= 0 ; i--);
     147    for (i = (int)strlen(in_out) - 1; i >= 0  && in_out[i] <= ' '; i--);
    148148
    149149    /* The string now ends after that char */
Note: See TracChangeset for help on using the changeset viewer.