From 5f579c5332b34cb2cf67db004c2d93086d8c4187 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Sun, 25 Nov 2007 18:46:04 -0500 Subject: bufferevent got callback call fixed. --- src/buffer_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_event.c b/src/buffer_event.c index a2ec577..4e20353 100644 --- a/src/buffer_event.c +++ b/src/buffer_event.c @@ -49,7 +49,7 @@ static void handle_callback(le_bufferevent* le_ev, short what, int callbackIndex /* func, bufferevent */ lua_pushinteger(L, what); /* What to do w/ errors...? */ - lua_pcall(L, 3, 0, 0); + lua_pcall(L, 2, 0, 0); } static void buffer_event_readcb(struct bufferevent *ev, void *ptr) { -- cgit v1.2.3