mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Allow empty lines in the configuration file.
This commit is contained in:
parent
371a9ab667
commit
7acaf53dc9
3 changed files with 5 additions and 4 deletions
4
util.c
4
util.c
|
|
@ -40,7 +40,7 @@ int strgets(char* s, unsigned size, FILE* f)
|
|||
*i++ = c;
|
||||
|
||||
if (i == send) {
|
||||
return -1;
|
||||
return -1; /* return error if the buffer is full */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ int strgets(char* s, unsigned size, FILE* f)
|
|||
|
||||
*i = 0;
|
||||
|
||||
return i - s;
|
||||
return i - s + 1;
|
||||
}
|
||||
|
||||
int stru32(const char* s, uint32_t* value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue