summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-06-16 06:38:07 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-06-16 06:38:07 +0000
commit82485044b16c7ceffee7adbd11e48b5f8ac4f209 (patch)
tree45501c767243b4ffa19819a8063f6844a4911316 /Build/source/texk
parent3163a1b047936cafd6c1041fd9df08979d1913c3 (diff)
LuaTeX: Handle --output-comment=''
git-svn-id: svn://tug.org/texlive/trunk@37560 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/web2c/luatexdir/dvi/dvigen.w5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/dvi/dvigen.w b/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
index 4277d6a6bbe..53d3b9b0e89 100644
--- a/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
+++ b/Build/source/texk/web2c/luatexdir/dvi/dvigen.w
@@ -1261,9 +1261,10 @@ void ensure_dvi_header_written(PDF pdf)
dvi_four(473628672); /* conversion ratio for sp */
prepare_mag();
dvi_four(mag); /* magnification factor is frozen */
- if (output_comment && (l = (unsigned) strlen(output_comment)) ) {
+ if (output_comment) {
+ l = (unsigned) strlen(output_comment);
dvi_out(l);
- for (s = 0; s <= l - 1; s++)
+ for (s = 0; s < l; s++)
dvi_out(output_comment[s]);
} else { /* the default code is unchanged */
old_setting = selector;