summaryrefslogtreecommitdiffstats
path: root/lua/loslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/loslib.c')
-rw-r--r--lua/loslib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/loslib.c b/lua/loslib.c
index 489755b..052ba17 100644
--- a/lua/loslib.c
+++ b/lua/loslib.c
@@ -1,5 +1,5 @@
/*
-** $Id: loslib.c,v 1.39 2012/05/23 15:37:09 roberto Exp $
+** $Id: loslib.c,v 1.40.1.1 2013/04/12 18:48:47 roberto Exp $
** Standard Operating System library
** See Copyright Notice in lua.h
*/
@@ -98,7 +98,7 @@ static int os_remove (lua_State *L) {
static int os_rename (lua_State *L) {
const char *fromname = luaL_checkstring(L, 1);
const char *toname = luaL_checkstring(L, 2);
- return luaL_fileresult(L, rename(fromname, toname) == 0, fromname);
+ return luaL_fileresult(L, rename(fromname, toname) == 0, NULL);
}