mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Uses getc() instead of geteol() when we are expecting a space.
This commit is contained in:
parent
f5986f24a1
commit
8810d7b05d
1 changed files with 2 additions and 2 deletions
4
state.c
4
state.c
|
|
@ -854,7 +854,7 @@ void state_read(struct snapraid_state* state)
|
|||
|
||||
/* read the hash only for 'blk/inv/chg', and not for 'new' */
|
||||
if (tag[0] != 'n') {
|
||||
c = sgeteol(f);
|
||||
c = sgetc(f);
|
||||
if (c != ' ') {
|
||||
fprintf(stderr, "Invalid 'blk' specification in '%s' at line %u\n", path, line);
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
@ -916,7 +916,7 @@ void state_read(struct snapraid_state* state)
|
|||
hash = oathash32(hash, v_pos);
|
||||
|
||||
/* read the hash */
|
||||
c = sgeteol(f);
|
||||
c = sgetc(f);
|
||||
if (c != ' ') {
|
||||
fprintf(stderr, "Invalid 'off' specification in '%s' at line %u\n", path, line);
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue