[tex-k] dvips(k) 5.999 creates corrupted ps files with specificoptions
Akira Kakuto
kakuto at w32tex.org
Wed Apr 24 23:28:53 CEST 2019
Dear Arnaud,
> When using long paths, the produced ps file is corrupted:
dosection.c:
char buf[104];
... ...
snprintf(buf, sizeof(buf), "(%.500s)", fulliname);
cmdout(buf);
Thus input dvi name is truncated at the length of 102:
"(aaa...aaa", where aaa...aaa contains 102 characters.
I think
snprintf(buf, sizeof(buf), "(%.500s", fulliname);
cmdout(buf);
cmdout(")");
is better to avoid corruption.
If longer names are desirable, Karl will change sources.
Best,
Akira
More information about the tex-k
mailing list