diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Linguagem para Usuarios de Aplicacao | 3 | ** Linguagem para Usuarios de Aplicacao |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_lua="$Id: lua.c,v 1.7 1995/10/31 17:05:35 roberto Exp roberto $"; | 6 | char *rcs_lua="$Id: lua.c,v 1.8 1996/03/12 13:14:52 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | #include <string.h> | 9 | #include <string.h> |
@@ -41,7 +41,7 @@ static void lua_getargv (void) | |||
41 | 41 | ||
42 | static void manual_input (void) | 42 | static void manual_input (void) |
43 | { | 43 | { |
44 | if (isatty(fileno(stdin))) | 44 | if (isatty(0)) |
45 | { | 45 | { |
46 | char buffer[250]; | 46 | char buffer[250]; |
47 | while (fgets(buffer, sizeof(buffer), stdin) != 0) | 47 | while (fgets(buffer, sizeof(buffer), stdin) != 0) |