Changeset 672 in MondoRescue for trunk/mondo/mondo/common/libmondo-raid.c


Ignore:
Timestamp:
Jun 12, 2006, 9:55:14 AM (18 years ago)
Author:
bcornec
Message:

merge -r651:671 $SVN_M/branches/stable

File:
1 edited

Legend:

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

    r588 r672  
    967967    // trim leading spaces
    968968    pos = string;
    969     while (*pos == ' ') *pos++;
    970     asprintf(&string, pos);
    971     //
     969    while (*pos == ' ') pos += 1;
     970    asprintf(&strtmp, pos);
     971    strcpy(string, strtmp);
     972    paranoid_free(strtmp);
    972973    // if we have newline after only spaces, this is a blank line, update
    973974    // counters, otherwise do normal parsing
     
    11241125    } else {
    11251126      while (*pos != ' ') {
    1126         *pos--;
     1127        pos -= 1;
    11271128        if (pos < string) {
    11281129          log_it("String underflow!\n");
     
    11491150    } else {
    11501151      while (*pos != ' ') {
    1151         *pos--;
     1152        pos -= 1;
    11521153        if (pos < string) {
    11531154          printf("ERROR: String underflow!\n");
Note: See TracChangeset for help on using the changeset viewer.