diff options
author | Přemysl Janouch <p@janouch.name> | 2018-11-01 20:05:06 +0100 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-11-01 20:05:06 +0100 |
commit | 2c595100ae8189de7c2cd29140a185d7f4e3673b (patch) | |
tree | 88ab9d6fd9690eb10a9bfc9b2903a56e0c7d60d8 | |
parent | e4af5b41477c86224abd6afd577daaf75923e7f2 (diff) | |
download | sdn-2c595100ae8189de7c2cd29140a185d7f4e3673b.tar.gz sdn-2c595100ae8189de7c2cd29140a185d7f4e3673b.tar.xz sdn-2c595100ae8189de7c2cd29140a185d7f4e3673b.zip |
Fix setcchar invocation
-rw-r--r-- | sdn.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |