forked from ariadne/pkgconf
parse: use pkg_fgetline().
parent
130907d506
commit
14901943cd
2
parse.c
2
parse.c
|
@ -393,7 +393,7 @@ parse_file(const char *filename, FILE *f)
|
||||||
pkg = calloc(sizeof(pkg_t), 1);
|
pkg = calloc(sizeof(pkg_t), 1);
|
||||||
pkg->filename = strdup(filename);
|
pkg->filename = strdup(filename);
|
||||||
|
|
||||||
while (fgets(readbuf, BUFSIZ, f) != NULL)
|
while (pkg_fgetline(readbuf, BUFSIZ, f) != NULL)
|
||||||
{
|
{
|
||||||
char op, *p, *key = NULL, *value = NULL;
|
char op, *p, *key = NULL, *value = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue