diff options
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lkpselib.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 979392e7942..526f104c48f 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,5 +1,9 @@ 2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de> + * lua/lkpselib.c: Use kpse_readable_file() with non-const arg. + +2012-11-20 Peter Breitenlohner <peb@mppmu.mpg.de> + * lua/lepdflib.cc: No need to test for Annot::decRefCnt with poppler 0.18 or better. diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c index 11283167ec0..6a64799771a 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c @@ -764,17 +764,19 @@ static int lua_kpse_version(lua_State * L) static int readable_file(lua_State * L) { - const char *name = luaL_checkstring(L, 1); + char *name = xstrdup(luaL_checkstring(L, 1)); TEST_PROGRAM_NAME_SET; lua_pushstring(L, kpse_readable_file(name)); + free(name); return 1; } static int lua_kpathsea_readable_file(lua_State * L) { kpathsea *kp = (kpathsea *) luaL_checkudata(L, 1, KPATHSEA_METATABLE); - const char *name = luaL_checkstring(L, 2); + char *name = xstrdup(luaL_checkstring(L, 2)); lua_pushstring(L, kpathsea_readable_file(*kp, name)); + free(name); return 1; } |