summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-26 13:37:23 -0300
commit88607acc2c41c2bace172b78012d2ce9abf05766 (patch)
tree6283e23fe6acce3fb68e0abeb2410e7cdf816f90 /liolib.c
parent6de93e29321bedb4f9ebd14bdcc04b942b0aad57 (diff)
downloadlua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.gz
lua-88607acc2c41c2bace172b78012d2ce9abf05766.tar.bz2
lua-88607acc2c41c2bace172b78012d2ce9abf05766.zip
details
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index f0005e43..d3216a1f 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.10 2002/06/06 18:17:33 roberto Exp roberto $ 2** $Id: liolib.c,v 2.11 2002/06/18 15:16:18 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*/
@@ -519,7 +519,7 @@ static int io_date (lua_State *L) {
519 if (strftime(b, sizeof(b), s, stm)) 519 if (strftime(b, sizeof(b), s, stm))
520 lua_pushstring(L, b); 520 lua_pushstring(L, b);
521 else 521 else
522 return luaL_error(L, "invalid `date' format"); 522 return luaL_error(L, "`date' format too long");
523 } 523 }
524 return 1; 524 return 1;
525} 525}