X-Git-Url: http://git.draconx.ca/gitweb/liblbx.git/blobdiff_plain/fc8dd8be3744680d93c490227be4db8628377d3c..0eb74c284927b79b607adceae7262734e81a46b3:/src/image.c diff --git a/src/image.c b/src/image.c index 78cb8a5..69d4ebb 100644 --- a/src/image.c +++ b/src/image.c @@ -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; }