summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-10-28 15:58:35 -0700
committerPixel <pixel@nobis-crew.org>2009-10-28 15:58:35 -0700
commitc58b0339b6e94db44f675c95c97e2115456a26c0 (patch)
tree3f3895ae447e1db8518cc6f413727b5793aa7a58
parent540be1e374479694a6d8a7816cf3247a46b32f34 (diff)
Fixing find_dir_entry; second prototype...
-rw-r--r--lib/cdutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index db302a7..d863927 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -564,7 +564,7 @@ struct cdutils::DirEntry * cdutils::find_dir_entry(Byte ** bufout, struct cdutil
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))) {
rdir = dir;
}
ptr += dir->R;