aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-12 12:56:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-12 12:56:03 -0300
commit40306b10db342cb0be4144fdd451e1128fe7ec55 (patch)
tree987012a82037f10b2c66ef678a4e74136191b7b0 /lua.c
parent5eff5d3eac37a7596550a881d1db470fef0c1648 (diff)
downloadlua-40306b10db342cb0be4144fdd451e1128fe7ec55.tar.gz
lua-40306b10db342cb0be4144fdd451e1128fe7ec55.tar.bz2
lua-40306b10db342cb0be4144fdd451e1128fe7ec55.zip
small corrections.
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index ad0a9316..b5cdcb0f 100644
--- a/lua.c
+++ b/lua.c
@@ -3,7 +3,7 @@
3** Linguagem para Usuarios de Aplicacao 3** Linguagem para Usuarios de Aplicacao
4*/ 4*/
5 5
6char *rcs_lua="$Id: lua.c,v 1.6 1995/10/23 13:54:11 roberto Exp roberto $"; 6char *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