parse: use pkg_fgetline().

pull/15/head
William Pitcock 2012-05-04 03:23:03 +00:00
parent 130907d506
commit 14901943cd
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ parse_file(const char *filename, FILE *f)
pkg = calloc(sizeof(pkg_t), 1);
pkg->filename = strdup(filename);
while (fgets(readbuf, BUFSIZ, f) != NULL)
while (pkg_fgetline(readbuf, BUFSIZ, f) != NULL)
{
char op, *p, *key = NULL, *value = NULL;