mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 01:04:06 +01:00
Fix pipe buffer offset
This commit is contained in:
parent
5ee65eec5d
commit
e61d3aa18f
2
window.c
2
window.c
@ -983,7 +983,7 @@ window_pane_read_callback(__unused struct bufferevent *bufev, void *data)
|
||||
|
||||
new_size = EVBUFFER_LENGTH(evb) - wp->pipe_off;
|
||||
if (wp->pipe_fd != -1 && new_size > 0) {
|
||||
new_data = EVBUFFER_DATA(evb);
|
||||
new_data = EVBUFFER_DATA(evb) + wp->pipe_off;
|
||||
bufferevent_write(wp->pipe_event, new_data, new_size);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user