From 14901943cdfbb3614004f4c22c91261468c7b453 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 4 May 2012 03:23:03 +0000 Subject: [PATCH] parse: use pkg_fgetline(). --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 802ff67..372a930 100644 --- a/parse.c +++ b/parse.c @@ -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;