Changeset 672 in MondoRescue for trunk/mondo/mondo/common/libmondo-raid.c
- Timestamp:
- Jun 12, 2006, 9:55:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-raid.c
r588 r672 967 967 // trim leading spaces 968 968 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); 972 973 // if we have newline after only spaces, this is a blank line, update 973 974 // counters, otherwise do normal parsing … … 1124 1125 } else { 1125 1126 while (*pos != ' ') { 1126 *pos--;1127 pos -= 1; 1127 1128 if (pos < string) { 1128 1129 log_it("String underflow!\n"); … … 1149 1150 } else { 1150 1151 while (*pos != ' ') { 1151 *pos--;1152 pos -= 1; 1152 1153 if (pos < string) { 1153 1154 printf("ERROR: String underflow!\n");
Note:
See TracChangeset
for help on using the changeset viewer.