From 6bc68d464523932a4319f34810fd3f2a3db1dc7d Mon Sep 17 00:00:00 2001
From: Waldemar Celes <celes@tecgraf.puc-rio.br>
Date: Thu, 13 Oct 1994 14:18:32 -0300
Subject: Acertar bug para evitar formato "%5.0s", por exemplo.

---
 iolib.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iolib.c b/iolib.c
index 94b2028b..e553384e 100644
--- a/iolib.c
+++ b/iolib.c
@@ -3,7 +3,7 @@
 ** Input/output library to LUA
 */
 
-char *rcs_iolib="$Id: iolib.c,v 1.9 1994/09/12 19:24:31 celes Exp celes $";
+char *rcs_iolib="$Id: iolib.c,v 1.10 1994/10/07 22:47:05 celes Exp celes $";
 
 #include <stdlib.h>
 #include <string.h>
@@ -320,7 +320,7 @@ static void io_read (void)
 static void io_readuntil (void)
 {
  int n=255,m=0;
- char c,d;
+ int c,d;
  char *s;
  lua_Object lo = lua_getparam(1);
  if (!lua_isstring(lo))
@@ -379,7 +379,7 @@ static char *buildformat (char *e, lua_Object o)
  char *string = &buffer[255];
  char *fstart=e, *fspace, *send;
  char t, j='r';
- int  m=0, n=0, l;
+ int  m=0, n=-1, l;
  while (isspace(*e)) e++;
  fspace = e;
  t = *e++;
-- 
cgit v1.2.3-55-g6feb