From 537b18d765a244af5f5ce85ab92721cf92d43142 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 1 Aug 2012 08:49:09 +0000 Subject: [PATCH] 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 --- libsrc/cbm/readdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5