aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-13 16:16:43 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-13 16:16:43 +0100
commit5bc7fcc00507bbc5ff5bf957a1589209f8495534 (patch)
treef18969c395f6e74e0f299948e376abbe74577f68 /src/kernel/fs
parent41a4f5309ef298da764bf1dca1254e734a4417f0 (diff)
downloadkogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.tar.gz
kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.zip
Shell begins to be usefull.
Diffstat (limited to 'src/kernel/fs')
-rw-r--r--src/kernel/fs/iso9660.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/fs/iso9660.c b/src/kernel/fs/iso9660.c
index 4de6f2b..6c67823 100644
--- a/src/kernel/fs/iso9660.c
+++ b/src/kernel/fs/iso9660.c
@@ -315,7 +315,7 @@ bool iso9660_dir_readdir(fs_handle_t *h, size_t ent_no, dirent_t *d) {
if (!(dr->flags & ISO9660_DR_FLAG_DIR) && name[len] != ';') continue;
if (name[len-1] == '.') len--; // file with no extension
- if (idx == ent_no) {
+ if (idx - 2 == ent_no) {
// Found the node we are interested in
if (len >= DIR_MAX) len = DIR_MAX - 1;
memcpy(d->name, name, len);