diff options
| author | Rob Hoelz <rob@hoelz.ro> | 2012-06-25 23:21:24 -0500 |
|---|---|---|
| committer | Rob Hoelz <rob@hoelz.ro> | 2012-06-25 23:21:24 -0500 |
| commit | 47cbd715e4b0985d04b527649296544b9acbe033 (patch) | |
| tree | a09932318099087d06be7a58cae263dc26062521 | |
| parent | a6e9ded55fd2852168976ed4e2010e9a38726a74 (diff) | |
| download | lua-term-47cbd715e4b0985d04b527649296544b9acbe033.tar.gz lua-term-47cbd715e4b0985d04b527649296544b9acbe033.tar.bz2 lua-term-47cbd715e4b0985d04b527649296544b9acbe033.zip | |
Fix pointer problem
| -rw-r--r-- | core.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -5,9 +5,9 @@ | |||
| 5 | static int | 5 | static int |
| 6 | lua_isatty(lua_State *L) | 6 | lua_isatty(lua_State *L) |
| 7 | { | 7 | { |
| 8 | FILE *fp = (FILE *) luaL_checkudata(L, -1, LUA_FILEHANDLE); | 8 | FILE **fp = (FILE **) luaL_checkudata(L, -1, LUA_FILEHANDLE); |
| 9 | 9 | ||
| 10 | lua_pushboolean(L, isatty(fileno(fp))); | 10 | lua_pushboolean(L, isatty(fileno(*fp))); |
| 11 | return 1; | 11 | return 1; |
| 12 | } | 12 | } |
| 13 | 13 | ||
