summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-09-13 16:42:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-09-13 16:42:02 -0300
commita8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68 (patch)
tree1ac4b837433c4d0a95b85c393507f525215d0173 /liolib.c
parentae3ecc2d4a5b108efbb2bd3db9f8e902f28de21d (diff)
downloadlua-github-a8a75fb7ab8e53c9f4203d36cb9d9a1000a1be68.tar.gz
details
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index fa76b9a1..07235e7a 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
/*
-** $Id: liolib.c,v 1.43 1999/08/10 13:05:16 roberto Exp roberto $
+** $Id: liolib.c,v 1.44 1999/08/16 20:52:00 roberto Exp roberto $
** Standard I/O (and system) library
** See Copyright Notice in lua.h
*/
@@ -287,7 +287,7 @@ static int read_number (FILE *f) {
}
-#define HUNK_LINE 1024
+#define HUNK_LINE 256
#define HUNK_FILE BUFSIZ
static int read_line (FILE *f) {
@@ -358,7 +358,7 @@ static void io_write (void) {
const char *s;
long l;
while ((s = luaL_opt_lstr(arg++, NULL, &l)) != NULL)
- status = status && ((long)fwrite(s, 1, l, f) == l);
+ status = status && ((long)fwrite(s, sizeof(char), l, f) == l);
pushresult(status);
}