lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5cdec7d124e46c1409df8033f1b795a996dd00e4
parent 9423e22aa35f47b392fc52a1b93c1be4c69f2aee
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  4 Jun 2009 16:34:00 -0300

added "\n" at the end of 'package.config' (so that the string
is a sequence of complete lines)

Diffstat:
Mloadlib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/loadlib.c b/loadlib.c @@ -1,5 +1,5 @@ /* -** $Id: loadlib.c,v 1.61 2008/08/06 13:38:32 roberto Exp roberto $ +** $Id: loadlib.c,v 1.62 2009/03/26 22:25:05 roberto Exp roberto $ ** Dynamic library loader for Lua ** See Copyright Notice in lua.h ** @@ -669,7 +669,7 @@ LUALIB_API int luaopen_package (lua_State *L) { setpath(L, "cpath", LUA_CPATH, LUA_CPATH_DEFAULT); /* set field `cpath' */ /* store config information */ lua_pushliteral(L, LUA_DIRSEP "\n" LUA_PATHSEP "\n" LUA_PATH_MARK "\n" - LUA_EXECDIR "\n" LUA_IGMARK); + LUA_EXECDIR "\n" LUA_IGMARK "\n"); lua_setfield(L, -2, "config"); /* set field `loaded' */ luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 2);