From 47cbd715e4b0985d04b527649296544b9acbe033 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Mon, 25 Jun 2012 23:21:24 -0500 Subject: Fix pointer problem --- core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.c b/core.c index 04ff4ef..d42b834 100644 --- a/core.c +++ b/core.c @@ -5,9 +5,9 @@ static int lua_isatty(lua_State *L) { - FILE *fp = (FILE *) luaL_checkudata(L, -1, LUA_FILEHANDLE); + FILE **fp = (FILE **) luaL_checkudata(L, -1, LUA_FILEHANDLE); - lua_pushboolean(L, isatty(fileno(fp))); + lua_pushboolean(L, isatty(fileno(*fp))); return 1; } -- cgit v1.2.3-55-g6feb