about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/input_win.c2
-rw-r--r--src/profanity.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 308d4046..15f095bf 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -110,7 +110,7 @@ inp_clear(void)
 void
 inp_non_block(void)
 {
-    wtimeout(inp_win, 20);
+    wtimeout(inp_win, 100);
 }
 
 void
diff --git a/src/profanity.c b/src/profanity.c
index 329acb70..521b277e 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -55,10 +55,12 @@ prof_run(const int disable_tls, char *log_level)
     GTimer *timer = g_timer_new();
     gboolean cmd_result = TRUE;
 
+    char inp[INP_WIN_MAX];
+    int size = 0;
+
     while(cmd_result == TRUE) {
         int ch = ERR;
-        char inp[INP_WIN_MAX];
-        int size = 0;
+        size = 0;
 
         while(ch != '\n') {