mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Merge branch 'obsd-master' into master
This commit is contained in:
@ -1778,11 +1778,11 @@ server_client_check_exit(struct client *c)
|
||||
|
||||
switch (c->exit_type) {
|
||||
case CLIENT_EXIT_RETURN:
|
||||
if (c->exit_message != NULL) {
|
||||
if (c->exit_message != NULL)
|
||||
msize = strlen(c->exit_message) + 1;
|
||||
size = (sizeof c->retval) + msize;
|
||||
} else
|
||||
size = (sizeof c->retval);
|
||||
else
|
||||
msize = 0;
|
||||
size = (sizeof c->retval) + msize;
|
||||
data = xmalloc(size);
|
||||
memcpy(data, &c->retval, sizeof c->retval);
|
||||
if (c->exit_message != NULL)
|
||||
|
Reference in New Issue
Block a user