summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/dpxfile.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-06-04 23:16:39 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-06-04 23:16:39 +0000
commitb0fb67d847b80f59d3b02a4d91812db990af700f (patch)
tree70778294498a4216cf804ad9e68875efdb012364 /Build/source/texk/xdvipdfmx/src/dpxfile.c
parentfb8f2c2414fb14c8c668dc280c565a65676f3e22 (diff)
left the argument intact.
git-svn-id: svn://tug.org/texlive/trunk@22778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/dpxfile.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/dpxfile.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/dpxfile.c b/Build/source/texk/xdvipdfmx/src/dpxfile.c
index 3f718ba1d31..a17a6d1a52f 100644
--- a/Build/source/texk/xdvipdfmx/src/dpxfile.c
+++ b/Build/source/texk/xdvipdfmx/src/dpxfile.c
@@ -161,9 +161,10 @@ static int exec_spawn (char *cmd)
if (!cmd)
return -1;
- while (*cmd == ' ' || *cmd == '\t')
- cmd++;
- if (*cmd == '\0')
+ p = cmd;
+ while (*p == ' ' || *p == '\t')
+ p++;
+ if (*p == '\0')
return -1;
i = 0;
p = cmd;