]> git.draconx.ca Git - liblbx.git/blobdiff - src/image.c
liblbx: Replace feof call with lbx_file_ops.
[liblbx.git] / 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;
                }