diff options
Diffstat (limited to 'lib/cdutils.cpp')
-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; |