summaryrefslogtreecommitdiff
path: root/lib/luacd.cpp
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-06-09 20:31:47 -0700
committerPixel <pixel@nobis-crew.org>2009-06-09 20:31:47 -0700
commite0940305791e86f442cd761de486deb344b8e939 (patch)
tree3be2a39f3b70aec030b3c5bb595e082ed3a2117c /lib/luacd.cpp
parent07c79ea1a1b015c8c8f5ea4bb4b8b5c2aaf6f4b9 (diff)
Fixing printdir.
Diffstat (limited to 'lib/luacd.cpp')
-rw-r--r--lib/luacd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/luacd.cpp b/lib/luacd.cpp
index 6855b9a..9c4e55a 100644
--- a/lib/luacd.cpp
+++ b/lib/luacd.cpp
@@ -484,7 +484,7 @@ int sLua_cdutils::cdutils_proceed(Lua * L, int n, cdutils * cd, int caller) {
L->error("Cdutils object void");
break;
case CDUTILS_PRINTDIR:
- path = L->tostring(1);
+ path = L->tostring(2);
if (cd) {
char * f;
cdutils::DirEntry dir = cd->find_path(f = path.strdup());