Couple of vasprintf -> xvasprintf.

This commit is contained in:
nicm
2016-09-28 14:40:07 +00:00
parent acacb718e5
commit bb5798aa0e
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ cmdq_print(struct cmd_q *cmdq, const char *fmt, ...)
/* nothing */;
else if (c->session == NULL || (c->flags & CLIENT_CONTROL)) {
if (~c->flags & CLIENT_UTF8) {
vasprintf(&tmp, fmt, ap);
xvasprintf(&tmp, fmt, ap);
msg = utf8_sanitize(tmp);
free(tmp);
evbuffer_add(c->stdout_data, msg, strlen(msg));