mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 13:18:55 +00:00
Couple of vasprintf -> xvasprintf.
This commit is contained in:
parent
acacb718e5
commit
bb5798aa0e
@ -80,7 +80,7 @@ cmdq_print(struct cmd_q *cmdq, const char *fmt, ...)
|
|||||||
/* nothing */;
|
/* nothing */;
|
||||||
else if (c->session == NULL || (c->flags & CLIENT_CONTROL)) {
|
else if (c->session == NULL || (c->flags & CLIENT_CONTROL)) {
|
||||||
if (~c->flags & CLIENT_UTF8) {
|
if (~c->flags & CLIENT_UTF8) {
|
||||||
vasprintf(&tmp, fmt, ap);
|
xvasprintf(&tmp, fmt, ap);
|
||||||
msg = utf8_sanitize(tmp);
|
msg = utf8_sanitize(tmp);
|
||||||
free(tmp);
|
free(tmp);
|
||||||
evbuffer_add(c->stdout_data, msg, strlen(msg));
|
evbuffer_add(c->stdout_data, msg, strlen(msg));
|
||||||
|
2
input.c
2
input.c
@ -961,7 +961,7 @@ input_reply(struct input_ctx *ictx, const char *fmt, ...)
|
|||||||
char *reply;
|
char *reply;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vasprintf(&reply, fmt, ap);
|
xvasprintf(&reply, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
bufferevent_write(ictx->wp->event, reply, strlen(reply));
|
bufferevent_write(ictx->wp->event, reply, strlen(reply));
|
||||||
|
Loading…
Reference in New Issue
Block a user