Changeset 3147 in MondoRescue for branches/3.1/mondo/src/lib
- Timestamp:
- Jun 19, 2013, 8:34:46 AM (12 years ago)
- Location:
- branches/3.1/mondo/src/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/mondo/src/lib/mr_conf.c
r2508 r3147 97 97 int mr_conf_open(const char *filename) { 98 98 size_t length; /*length of the buffer/file */ 99 size_t res = 0;100 99 101 100 /* check if mr_conf is already opened? */ … … 126 125 /*reading file in buffer (skip all 0 characters) */ 127 126 128 res = fread(buffer, sizeof(char), length, CONF); 127 if (fread(buffer, sizeof(char), length, CONF)) { 128 // FIXME 129 } 129 130 buffer[length] = (char) 0; /*finalize the string */ 130 131 -
branches/3.1/mondo/src/lib/mr_str.c
r2421 r3147 28 28 size_t pos1 = 0; 29 29 size_t pos2 = 0; 30 31 if (instr == NULL) { 32 *lastpos = 0; 33 return token; 34 } 35 36 if (delims == NULL) { 37 *lastpos = 0; 38 return token; 39 } 30 40 31 41 if (strlen(instr) <= *lastpos) {
Note:
See TracChangeset
for help on using the changeset viewer.