From fa270d92873a7fd595e093eb3c07409e336620c0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 7 Aug 2018 14:11:19 -0400 Subject: Hack clang into checking uiFmt format strings --- irc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 1692a73..02a9f64 100644 --- a/irc.c +++ b/irc.c @@ -99,7 +99,7 @@ void ircFmt(const char *format, ...) { int len = vasprintf(&buf, format, ap); va_end(ap); if (!buf) err(EX_OSERR, "vasprintf"); - if (chat.verbose) uiFmt(L"<<< %.*s", len - 2, buf); + if (chat.verbose) uiFmt("<<< %.*s", len - 2, buf); ircWrite(buf, len); free(buf); } @@ -119,7 +119,7 @@ void ircRead(void) { char *crlf, *line = buf; while ((crlf = strnstr(line, "\r\n", &buf[len] - line))) { crlf[0] = '\0'; - if (chat.verbose) uiFmt(L">>> %s", line); + if (chat.verbose) uiFmt(">>> %s", line); handle(line); line = &crlf[2]; } -- cgit 1.4.1-2-gfad0