From: uz Date: Wed, 1 Aug 2012 08:49:09 +0000 (+0000) Subject: Fix invalid header offset (has been changed in opendir.c but checkin of X-Git-Tag: V2.14~272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=537b18d765a244af5f5ce85ab92721cf92d43142;p=cc65 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 --- diff --git a/libsrc/cbm/readdir.c b/libsrc/cbm/readdir.c index 8661b4e43..d6947316b 100644 --- a/libsrc/cbm/readdir.c +++ b/libsrc/cbm/readdir.c @@ -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 {