* src/fileio.c (Finsert_file_contents): Minor refactoring.
This should help future patches which distinguish read_buf’s size
from other uses of READ_BUF_SIZE which may change.
(cherry picked from commit
ae30a61c74215c3e02fb3c0d603894457a4cfef5)
while (true)
{
- /* Read at most READ_BUF_SIZE bytes at a time, to allow
+ /* Read one buffer a time, to allow
quitting while reading a huge file. */
this = emacs_fd_read (fd, read_buf + unprocessed,
- READ_BUF_SIZE - unprocessed);
+ sizeof read_buf - unprocessed);
if (this <= 0)
break;