diff options
author | Pixel <pixel@nobis-crew.org> | 2009-10-26 17:17:04 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-10-26 17:17:04 -0700 |
commit | 34a415215a1a58f2777e1edae67255e9b45baa51 (patch) | |
tree | 490078deb5b5301072cd4d8ca597c612d2fe5bc0 | |
parent | 4a015a9287f60cfb528da3c637d46a8d4b5ec104 (diff) |
Fixing findpath.
-rw-r--r-- | lib/cdutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 0b5709a..36032fd 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -530,7 +530,7 @@ struct cdutils::DirEntry cdutils::find_dir_entry(struct DirEntry * dir, String n if (!dir->R) { ptr++; } else { - if (!strncmp(name.to_charp(), (char *) &(dir->id), dir->N)) { + if ((dir->N == name.strlen()) && (!strncmp(name.to_charp(), (char *) &(dir->id), dir->N))) { r = *dir; } ptr += dir->R; |