1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Fix invalid header offset (has been changed in opendir.c but checkin of

readdir.c was missing).
                     


git-svn-id: svn://svn.cc65.org/cc65/trunk@5800 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-08-01 08:49:09 +00:00
parent 58c8db7c75
commit 537b18d765

View File

@ -81,7 +81,7 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
/* End of file name found. */
entry.d_name[j] = '\0';
entry.d_namlen = j;
if (entry.d_off != 0) {
if (entry.d_off > 2) {
/* Proceed with file type */
s = 2;
} else {