commit 6bc68d464523932a4319f34810fd3f2a3db1dc7d
parent ceaaa0cca8e02b102963730e8df25ac4fbe5f2dd
Author: Waldemar Celes <celes@tecgraf.puc-rio.br>
Date: Thu, 13 Oct 1994 14:18:13 -0300
Acertar bug para evitar formato "%5.0s", por exemplo.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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++;