aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-10-14 13:24:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-10-14 13:24:11 -0300
commitebf646efb5d5c66939196c187a339fd6074d33f8 (patch)
tree6cac355a948441076065fdca86641fda6486f4b7
parentb3f81f1d1d3d7c6fd5787cb292a9a6bd3f0a361a (diff)
downloadlua-ebf646efb5d5c66939196c187a339fd6074d33f8.tar.gz
lua-ebf646efb5d5c66939196c187a339fd6074d33f8.tar.bz2
lua-ebf646efb5d5c66939196c187a339fd6074d33f8.zip
detail
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index e8328fdc..e723b656 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.66 2005/08/17 19:05:04 roberto Exp roberto $ 2** $Id: liolib.c,v 2.67 2005/08/26 17:36:32 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -440,7 +440,7 @@ static int f_setvbuf (lua_State *L) {
440 static const char *const modenames[] = {"no", "full", "line", NULL}; 440 static const char *const modenames[] = {"no", "full", "line", NULL};
441 FILE *f = tofile(L); 441 FILE *f = tofile(L);
442 int op = luaL_checkoption(L, 2, NULL, modenames); 442 int op = luaL_checkoption(L, 2, NULL, modenames);
443 lua_Integer sz = luaL_optinteger(L, 3, BUFSIZ); 443 lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE);
444 int res = setvbuf(f, NULL, mode[op], sz); 444 int res = setvbuf(f, NULL, mode[op], sz);
445 return pushresult(L, res == 0, NULL); 445 return pushresult(L, res == 0, NULL);
446} 446}