mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Trims extra spaces in the configuration file.
This commit is contained in:
parent
2aa36a5df5
commit
09b8a3cd7c
4 changed files with 36 additions and 10 deletions
4
util.c
4
util.c
|
|
@ -55,7 +55,7 @@ int strgets(char* s, unsigned size, FILE* f)
|
|||
return -1;
|
||||
}
|
||||
if (i == s)
|
||||
return 0;
|
||||
return 0; /* return EOF only if nothing was read */
|
||||
}
|
||||
|
||||
/* remove ending carrige return to support the Windows CR+LF format */
|
||||
|
|
@ -64,7 +64,7 @@ int strgets(char* s, unsigned size, FILE* f)
|
|||
|
||||
*i = 0;
|
||||
|
||||
return 1;
|
||||
return i - s;
|
||||
}
|
||||
|
||||
int stru32(const char* s, uint32_t* value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue