summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-22 08:47:29 +0000
committerpixel <pixel>2007-05-22 08:47:29 +0000
commit948a599db09a14e23fdcd83f7135b46c94d4a9f6 (patch)
tree5fd2a675c7fc0e258084f4c18553fbd573e17346
parent35294ec19264e0b90ff4cb98aedf7ed438aa3333 (diff)
Fixing stack work.
-rw-r--r--lib/LuaHttp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index 0b9cc22..b57b8e8 100644
--- a/lib/LuaHttp.cc
+++ b/lib/LuaHttp.cc
@@ -134,7 +134,7 @@ class LuaDomain : public Domain {
L->push("DOMAINS_KEYS");
L->gettable(LUA_REGISTRYINDEX);
L->push((lua_Number) id);
- L->copy(3);
+ L->copy(2);
L->settable();
}
virtual ~LuaDomain() { }
@@ -212,7 +212,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
r = 1;
break;
case HTTPRESPONSE_REGISTERDOMAIN:
- new LuaDomain(L, L->tostring(2));
+ new LuaDomain(L, L->tostring(1));
}
return r;