diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/authdb.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/src/authdb.c b/src/authdb.c index 53b015f..ed171a7 100644 --- a/src/authdb.c +++ b/src/authdb.c @@ -295,8 +295,9 @@ static blob_t read_word(FILE *in, int *lineno, blob_t b)  	r.ptr = b.ptr;  	r.len = 0; -	for (i = 0; i < b.len-1 && !isspace(ch); i++, r.len++) { +	for (i = 0; i < b.len-1 && !isspace(ch); i++) {  		r.ptr[i] = ch; +		r.len++;  		ch = fgetc(in);  		if (ch == EOF)  			break;  | 
