diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-10-10 13:24:57 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-10-10 13:24:57 +0000 |
commit | d5628c668badbec04b0a1e98ca8105dfd5467c96 (patch) | |
tree | b6c0a65554b874376ddf0e5b6f5c2e19842ce20a /Build/source/texk/web2c | |
parent | 353aefe54f55a8911b1fc035b87d87e2ab650f61 (diff) |
texmfmp.c: The argument of mk_shellcmdlist is not constant
git-svn-id: svn://tug.org/texlive/trunk@27940 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/lib/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 9 |
2 files changed, 8 insertions, 5 deletions
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 <peb@mppmu.mpg.de> + + * texmfmp.c (mk_shellcmdlist): The argument is not constant. + 2012-10-10 Akira Kakuto <kakuto@fuk.kinidai.ac.jp> * 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++; |