Fix pipe buffer offset

This commit is contained in:
Nicolas Viennot 2015-12-31 12:19:57 -05:00
parent 5ee65eec5d
commit e61d3aa18f

View File

@ -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);
}