about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-03 00:16:39 +0000
committerJames Booth <boothj5@gmail.com>2013-01-03 00:16:39 +0000
commit439e6486db24fb18f0cb2ac22e16a6327e1d8ad4 (patch)
treef72eb92acbe5688a0d11c2281d5f004210395b05 /src/profanity.c
parentd28930eaf475bdf187585d900e079b6ce9f32deb (diff)
downloadprofani-tty-439e6486db24fb18f0cb2ac22e16a6327e1d8ad4.tar.gz
Handle wide chars on input
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 47440b35..c4df79a6 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -67,7 +67,7 @@ prof_run(const int disable_tls, char *log_level)
     int size = 0;
 
     while(cmd_result == TRUE) {
-        int ch = ERR;
+        wint_t ch = ERR;
         size = 0;
 
         while(ch != '\n') {
@@ -95,7 +95,7 @@ prof_run(const int disable_tls, char *log_level)
             ui_refresh();
             jabber_process_events();
 
-            inp_get_char(&ch, inp, &size);
+            ch = inp_get_char(inp, &size);
 
             if (ch != ERR) {
                 ui_reset_idle_time();