From 948a599db09a14e23fdcd83f7135b46c94d4a9f6 Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 22 May 2007 08:47:29 +0000 Subject: Fixing stack work. --- lib/LuaHttp.cc | 4 ++-- 1 file 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; -- cgit v1.2.3