summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-05 21:57:50 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-08-05 21:57:50 +0000
commitd7d19aabe78adbefd5de0f6d95a6dd8092f94a28 (patch)
tree6ecc9cecdd0f55f3477ef362ad8e2e5c0883d271 /Build
parent1f6a803a817d6542b627094ccef8b9147323cc62 (diff)
dvipdfm-x/dvi.c: improve a little
git-svn-id: svn://tug.org/texlive/trunk@38053 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/dvi.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.c b/Build/source/texk/dvipdfm-x/dvi.c
index a7e8e532769..0a59502db54 100644
--- a/Build/source/texk/dvipdfm-x/dvi.c
+++ b/Build/source/texk/dvipdfm-x/dvi.c
@@ -947,19 +947,23 @@ static int
is_notdef_notzero (char *path)
{
FILE *f;
- char buf[2014];
- char cmd[512];
+ char buf[2048];
+ char *cmd;
char *p;
int ret = 0;
- strcpy (cmd, "t1disasm ");
- strcat (cmd, path);
+ p = kpse_var_value("SELFAUTOLOC");
+ if (p == NULL)
+ return ret;
+ cmd = concat3 (p, "/t1disasm ", path);
+ free (p);
f = popen (cmd, "r");
+ free (cmd);
if (f) {
- while ((fgets (buf, 2000, f))) {
+ while ((fgets (buf, 2047, f))) {
p = strstr (buf, "CharStrings");
if (p) {
- fgets (buf, 2000, f);
+ fgets (buf, 2047, f);
if (strncmp (buf, "/.notdef", 8) != 0)
ret = 1;
break;