mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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…
Reference in a new issue