Changeset 3627 in MondoRescue
- Timestamp:
- Dec 21, 2016, 3:16:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/lib/mr_str.c
r3614 r3627 168 168 char *mr_strip_spaces(const char *instr) { 169 169 170 char *p = NULL;171 170 char *q = NULL; 172 171 char *outstr = NULL; … … 175 174 return(NULL); 176 175 } 177 p = instr;178 176 179 177 /* Skip initial spaces and special chars */ 180 while (* p <= ' ' && *p!= '\0') {181 p++;182 } 183 mr_asprintf(outstr, "%s", p);178 while (*instr <= ' ' && *instr != '\0') { 179 instr++; 180 } 181 mr_asprintf(outstr, "%s", instr); 184 182 q = outstr + strlen(outstr) -1; 185 183
Note:
See TracChangeset
for help on using the changeset viewer.