From: Nick Bowler Date: Thu, 11 Feb 2010 02:57:21 +0000 (-0500) Subject: liblbx: Replace feof call with lbx_file_ops. X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/commitdiff_plain/0eb74c284927b79b607adceae7262734e81a46b3 liblbx: Replace feof call with lbx_file_ops. This feof call was missed when converting this function. --- 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; }