diff options
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | } |