diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-12 12:56:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-12 12:56:03 -0300 |
| commit | 40306b10db342cb0be4144fdd451e1128fe7ec55 (patch) | |
| tree | 987012a82037f10b2c66ef678a4e74136191b7b0 /lua.c | |
| parent | 5eff5d3eac37a7596550a881d1db470fef0c1648 (diff) | |
| download | lua-40306b10db342cb0be4144fdd451e1128fe7ec55.tar.gz lua-40306b10db342cb0be4144fdd451e1128fe7ec55.tar.bz2 lua-40306b10db342cb0be4144fdd451e1128fe7ec55.zip | |
small corrections.
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 |
