Allow empty lines in the configuration file.

This commit is contained in:
Andrea Mazzoleni 2011-06-21 21:34:58 +02:00
parent 371a9ab667
commit 7acaf53dc9
3 changed files with 5 additions and 4 deletions

4
util.c
View file

@ -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)