From 0eb74c284927b79b607adceae7262734e81a46b3 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 10 Feb 2010 21:57:21 -0500 Subject: [PATCH] liblbx: Replace feof call with lbx_file_ops. This feof call was missed when converting this function. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index cc8d54b..69d4ebb 100644 --- a/src/image.c +++ b/src/image.c @@ -404,7 +404,7 @@ lbximg_loadpalette(void *f, const struct lbx_file_ops *fops, for (i = 0; i < 256; i++) { if (fops->read(entry, sizeof entry, f) != sizeof entry) { - lbx_errno = (feof(f)) ? LBX_EEOF : -errno; + lbx_errno = (fops->eof(f)) ? LBX_EEOF : -errno; return -1; } -- 2.43.2