From 8810d7b05db1a1058d8aad8b646d4f26775229b3 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 3 Mar 2013 17:42:42 +0100 Subject: [PATCH] Uses getc() instead of geteol() when we are expecting a space. --- state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/state.c b/state.c index 51c34408..9cc706c5 100644 --- a/state.c +++ b/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);