From d5628c668badbec04b0a1e98ca8105dfd5467c96 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Wed, 10 Oct 2012 13:24:57 +0000 Subject: texmfmp.c: The argument of mk_shellcmdlist is not constant git-svn-id: svn://tug.org/texlive/trunk@27940 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/lib/ChangeLog | 4 ++++ Build/source/texk/web2c/lib/texmfmp.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog index 9fac279d1e1..1f67b4cd761 100644 --- a/Build/source/texk/web2c/lib/ChangeLog +++ b/Build/source/texk/web2c/lib/ChangeLog @@ -1,3 +1,7 @@ +2012-10-10 Peter Breitenlohner + + * texmfmp.c (mk_shellcmdlist): The argument is not constant. + 2012-10-10 Akira Kakuto * texmfmp.c: Modify determination of fullpath for restricted shell diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index fc4563c43b7..3f08e9b0200 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -208,8 +208,7 @@ static void mk_shellcmdlist (char *v) { char **p; - const char *q, *r1; - char *r; + char *q, *r; int n; q = v; @@ -218,10 +217,10 @@ mk_shellcmdlist (char *v) /* analyze the variable shell_escape_commands = foo,bar,... spaces before and after (,) are not allowed. */ - while ((r1 = strchr (q, ',')) != 0) { + while ((r = strchr (q, ',')) != 0) { n++; - r1++; - q = r1; + r++; + q = r; } if (*q) n++; -- cgit v1.2.3