Changeset 1552 in MondoRescue for branches/2.2.5/mondo/src/common/mr_string.c


Ignore:
Timestamp:
Jul 24, 2007, 3:22:07 PM (17 years ago)
Author:
Bruno Cornec
Message:

Fix bugs reported in #179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mondo/src/common/mr_string.c

    r843 r1552  
    6767                // Found it, skip the rest.
    6868                cnt++;
    69                 inptr++;
    7069                break;
    7170            }
    72             inptr++;
    7371            escptr++;
    7472        }
     73        inptr++;
    7574    }
    7675    inptr = instr;
     
    8483        while (*escptr != '\0') {
    8584            if (*inptr == *escptr) {
    86                 // Found it, skip the rest.
     85                // Found it, prepend with the escape char
    8786                *retptr = escchr;
    8887                retptr++;
     
    9897
    9998    return retstr;
    100 
    10199}
Note: See TracChangeset for help on using the changeset viewer.