]> git.sur5r.net Git - cc65/commitdiff
Fix invalid header offset (has been changed in opendir.c but checkin of
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 1 Aug 2012 08:49:09 +0000 (08:49 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 1 Aug 2012 08:49:09 +0000 (08:49 +0000)
readdir.c was missing).

git-svn-id: svn://svn.cc65.org/cc65/trunk@5800 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/readdir.c

index 8661b4e431c819a2760a7037a951dfa6b26cc05e..d6947316bf0039466b7c0ac7b810c787572b509b 100644 (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 {