From bb5798aa0e9e1c4c992afab4939fc0ce7c1479c1 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 28 Sep 2016 14:40:07 +0000 Subject: [PATCH] Couple of vasprintf -> xvasprintf. --- cmd-queue.c | 2 +- input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd-queue.c b/cmd-queue.c index c35d0c62..e9073c92 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -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)); diff --git a/input.c b/input.c index 289a25c8..5c11a61d 100644 --- a/input.c +++ b/input.c @@ -961,7 +961,7 @@ input_reply(struct input_ctx *ictx, const char *fmt, ...) char *reply; va_start(ap, fmt); - vasprintf(&reply, fmt, ap); + xvasprintf(&reply, fmt, ap); va_end(ap); bufferevent_write(ictx->wp->event, reply, strlen(reply));