diff options
author | Karl Berry <karl@freefriends.org> | 2019-04-30 01:34:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-04-30 01:34:42 +0000 |
commit | ca64a3a353b21327e7afb0a6c020cdbee67e409c (patch) | |
tree | a605a4b378069d42fdaad01266964979e4436e1e /Build/source/texk/dvipsk/dosection.c | |
parent | 4a0a61cd7c6089744b31e8837c83a1cd2f5dc572 (diff) |
close postscript string constant on long input filenames
git-svn-id: svn://tug.org/texlive/trunk@50901 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/dosection.c')
-rw-r--r-- | Build/source/texk/dvipsk/dosection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/dvipsk/dosection.c b/Build/source/texk/dvipsk/dosection.c index 4ece3bce5a1..1ebc163813d 100644 --- a/Build/source/texk/dvipsk/dosection.c +++ b/Build/source/texk/dvipsk/dosection.c @@ -23,7 +23,7 @@ dosection(sectiontype *s, int c) int np; int k; integer thispage = 0; - char buf[104]; + char buf[300]; /* really 253 */ dopsfont(s); #ifdef HPS @@ -40,7 +40,9 @@ dosection(sectiontype *s, int c) doubleout(mag); numout((integer)DPI); numout((integer)VDPI); - snprintf(buf, sizeof(buf), "(%.500s)", fulliname); + /* possibly lines in eps files are supposed to be <= 255; + not worth testing the limits merely to output a long file name. */ + snprintf(buf, sizeof(buf), "(%.250s)", fulliname); cmdout(buf); newline(); cmdout("@start"); |