summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
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;