From 34a415215a1a58f2777e1edae67255e9b45baa51 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 26 Oct 2009 17:17:04 -0700 Subject: Fixing findpath. --- lib/cdutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3 From 7e482e5f40f898691df76e796a8b5630828e8316 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 26 Oct 2009 17:24:36 -0700 Subject: Typo... MORE_ROW => MODE_ROW --- lib/luacd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3