Fix setcchar invocation

This commit is contained in:
Přemysl Eric Janouch 2018-11-01 20:05:06 +01:00
parent e4af5b4147
commit 2c595100ae
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,8 @@ fun xdg_config_find (const string &suffix) -> unique_ptr<ifstream> {
using ncstring = basic_string<cchar_t>;
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;
}