]> git.draconx.ca Git - liblbx.git/blobdiff - src/image.c
liblbx: Replace feof call with lbx_file_ops.
[liblbx.git] / src / image.c
index 78cb8a5d38c50ce41fae3c778a6daab0d0bdc7d2..69d4ebb4b8e9fc71713768365e1ad19401c6e127 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  2ooM: The Master of Orion II Reverse Engineering Project
  *  Library for working with LBX image files.
- *  Copyright (C) 2006-2008 Nick Bowler
+ *  Copyright (C) 2006-2010 Nick Bowler
  *
  *  This program is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -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;
                }