diff --git a/xkcp_mon.c b/xkcp_mon.c index bbc080e..3e114ea 100644 --- a/xkcp_mon.c +++ b/xkcp_mon.c @@ -61,7 +61,7 @@ static void xkcp_mon_read_cb(struct bufferevent *bev, void *ctx) char *buf = malloc(len+1); memset(buf, 0, len+1); if (evbuffer_remove(input, buf, len) > 0) - process_user_cmd(buf); + process_user_cmd(bev, buf); } }