summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luainit.w5
2 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index c27bcd4b2a1..8244539940a 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,7 @@
+2012-09-19 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * lua/luainit.w (parse_options): Avoid cast const => non-const.
+
2012-09-13 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
* lua/luainit.w (parse_options): allow lualatex "\input" "a b" on
diff --git a/Build/source/texk/web2c/luatexdir/lua/luainit.w b/Build/source/texk/web2c/luatexdir/lua/luainit.w
index b4c0607852c..4db90d73b95 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luainit.w
+++ b/Build/source/texk/web2c/luatexdir/lua/luainit.w
@@ -418,7 +418,10 @@ static void parse_options(int argc, char **argv)
else
input_name = xstrdup(sargv[sargc-1]);
sargv[sargc-1] = normalize_quotes(input_name, "argument");
- input_name = (char *)xbasename(input_name);
+ /* Same as
+ input_name = (char *)xbasename(input_name);
+ but without cast const => non-const. */
+ input_name += xbasename(input_name) - input_name;
p = strrchr(input_name, '.');
if (p != NULL && strcasecmp(p, ".tex") == 0)
*p = '\0';