diff options
-rw-r--r-- | lib/cdutils.cpp | 2 | ||||
-rw-r--r-- | lib/luacd.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index e24814e..673ec8d 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -530,7 +530,7 @@ struct cdutils::DirEntry cdutils::find_dir_entry(struct DirEntry * dir, const St 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; diff --git a/lib/luacd.cpp b/lib/luacd.cpp index 9c4e55a..97dbbaf 100644 --- a/lib/luacd.cpp +++ b/lib/luacd.cpp @@ -207,7 +207,7 @@ void Luacdutils::pushstatics(Lua * L) throw (GeneralException) { L->push((lua_Number) MODE2_FORM2); L->setvar(); - L->push("MORE_RAW"); + L->push("MODE_RAW"); L->push((lua_Number) MODE_RAW); L->setvar(); |