ed: replace magic number (077776, i.e. 32766) with NBLK-1. (#300)

Temp file size is now declared in an enum; changing it from the
default introduces a subtle bug in putline(), which expects it to
be 32767.

Mask with NBLK-1 instead.
This commit is contained in:
Marc Simpson 2019-12-08 17:19:17 -08:00 committed by Dan Cross
parent 46606276c3
commit 3d08a066b1

View file

@ -1050,7 +1050,7 @@ putline(void)
}
}
nl = tline;
tline += ((lp-linebuf) + 03) & 077776;
tline += ((lp-linebuf) + 03) & (NBLK-1);
return nl;
}