Instead of using large buffers in imsgs, add the data or path onto the end.

This commit is contained in:
nicm
2019-12-16 15:48:50 +00:00
parent 21f9b39f06
commit eaa58d28dc
4 changed files with 73 additions and 52 deletions

12
tmux.h
View File

@ -507,13 +507,10 @@ struct msg_command {
struct msg_read_open {
int stream;
int fd;
char path[PATH_MAX];
};
}; /* followed by path */
struct msg_read_data {
int stream;
size_t size;
char data[BUFSIZ];
};
struct msg_read_done {
@ -524,15 +521,12 @@ struct msg_read_done {
struct msg_write_open {
int stream;
int fd;
char path[PATH_MAX];
int flags;
};
}; /* followed by path */
struct msg_write_data {
int stream;
size_t size;
char data[BUFSIZ];
};
}; /* followed by data */
struct msg_write_ready {
int stream;