diff options
Diffstat (limited to 'engines/sword25/util/lua/loslib.cpp')
| -rw-r--r-- | engines/sword25/util/lua/loslib.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/sword25/util/lua/loslib.cpp b/engines/sword25/util/lua/loslib.cpp index 70a67bccf7..035925ceb5 100644 --- a/engines/sword25/util/lua/loslib.cpp +++ b/engines/sword25/util/lua/loslib.cpp @@ -55,13 +55,7 @@ static int os_rename (lua_State *L) { static int os_tmpname (lua_State *L) { - char buff[LUA_TMPNAMBUFSIZE]; - int err; - lua_tmpnam(buff, err); - if (err) - return luaL_error(L, "unable to generate a unique filename"); - lua_pushstring(L, buff); - return 1; + return luaL_error(L, "unable to generate a unique filename"); } |
