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.6 1995/10/23 13:54:11 roberto Exp roberto $"; | 6 | char *rcs_lua="$Id: lua.c,v 1.7 1995/10/31 17:05:35 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -44,7 +44,7 @@ static void manual_input (void) | |||
| 44 | if (isatty(fileno(stdin))) | 44 | if (isatty(fileno(stdin))) |
| 45 | { | 45 | { |
| 46 | char buffer[250]; | 46 | char buffer[250]; |
| 47 | while (gets(buffer) != 0) | 47 | while (fgets(buffer, sizeof(buffer), stdin) != 0) |
| 48 | lua_dostring(buffer); | 48 | lua_dostring(buffer); |
| 49 | } | 49 | } |
| 50 | else | 50 | else |
