mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-22 08:08:20 +08:00
io.cpp: use BUFFER_SIZE
-Wunused-macros showed that a recent change used 4096 instead of BUFFER_SIZE as previously (also 4096).
This commit is contained in:
parent
a19206036c
commit
c931e33759
|
@ -94,7 +94,7 @@ void io_buffer_t::run_background_fillthread(autoclose_fd_t readfd) {
|
|||
scoped_lock locker(append_lock_);
|
||||
ssize_t ret;
|
||||
do {
|
||||
char buff[4096];
|
||||
char buff[BUFFER_SIZE];
|
||||
ret = read(fd, buff, sizeof buff);
|
||||
if (ret > 0) {
|
||||
buffer_.append(&buff[0], &buff[ret]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user