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:
parent
46606276c3
commit
3d08a066b1
1 changed files with 1 additions and 1 deletions
|
|
@ -1050,7 +1050,7 @@ putline(void)
|
|||
}
|
||||
}
|
||||
nl = tline;
|
||||
tline += ((lp-linebuf) + 03) & 077776;
|
||||
tline += ((lp-linebuf) + 03) & (NBLK-1);
|
||||
return nl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue