summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/dvipdfmx.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-09-25 04:49:33 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-09-25 04:49:33 +0000
commitead3792e2d57305d0777008c5073968c36ec7ba3 (patch)
treeb512680dfa8982b3b4adf56f1f3d17c99a842a33 /Build/source/texk/dvipdfm-x/dvipdfmx.c
parent6c5342115a765fc2b9d6c1bb8984a065992c208d (diff)
texk/dvipdfm-x/dvipdfmx.c: Use strtoul for kpathsea_debug.
git-svn-id: svn://tug.org/texlive/trunk@38456 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dvipdfmx.c')
-rw-r--r--Build/source/texk/dvipdfm-x/dvipdfmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvipdfmx.c b/Build/source/texk/dvipdfm-x/dvipdfmx.c
index b4ae449cc3e..e1f890c9661 100644
--- a/Build/source/texk/dvipdfm-x/dvipdfmx.c
+++ b/Build/source/texk/dvipdfm-x/dvipdfmx.c
@@ -461,7 +461,8 @@ do_args (int argc, char *argv[], const char *source)
break;
case 133: /* --kpathsea-debug */
- if ((kpathsea_debug = (uint32_t)atoi(optarg)) < 0)
+ kpathsea_debug = (unsigned) strtoul(optarg, &nextptr, 0);
+ if (nextptr == optarg)
ERROR("Invalid kpathsearch debugging flags specified: %s", optarg);
break;