From c58b0339b6e94db44f675c95c97e2115456a26c0 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 28 Oct 2009 15:58:35 -0700 Subject: Fixing find_dir_entry; second prototype... --- lib/cdutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3