From 2c595100ae8189de7c2cd29140a185d7f4e3673b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 1 Nov 2018 20:05:06 +0100 Subject: Fix setcchar invocation --- sdn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sdn.cpp') diff --git a/sdn.cpp b/sdn.cpp index 76c87e3..56c8326 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -202,8 +202,8 @@ fun xdg_config_find (const string &suffix) -> unique_ptr { using ncstring = basic_string; fun cchar (chtype attrs, wchar_t c) -> cchar_t { - cchar_t ch {}; - setcchar (&ch, &c, attrs, PAIR_NUMBER (attrs), nullptr); + cchar_t ch {}; wchar_t ws[] = {c, 0}; + setcchar (&ch, ws, attrs, PAIR_NUMBER (attrs), nullptr); return ch; } -- cgit v1.2.3