]> git.draconx.ca Git - liblbx.git/commitdiff
liblbx: Replace feof call with lbx_file_ops.
authorNick Bowler <nbowler@draconx.ca>
Thu, 11 Feb 2010 02:57:21 +0000 (21:57 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 11 Feb 2010 04:46:58 +0000 (23:46 -0500)
This feof call was missed when converting this function.

src/image.c

index cc8d54bf290cd44bf237048bb44e3096b57af0b5..69d4ebb4b8e9fc71713768365e1ad19401c6e127 100644 (file)
@@ -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;
                }