summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-10-26 17:17:04 -0700
committerPixel <pixel@nobis-crew.org>2009-10-26 17:17:04 -0700
commit34a415215a1a58f2777e1edae67255e9b45baa51 (patch)
tree490078deb5b5301072cd4d8ca597c612d2fe5bc0
parent4a015a9287f60cfb528da3c637d46a8d4b5ec104 (diff)
Fixing findpath.
-rw-r--r--lib/cdutils.cpp2
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;