]> sjero.net Git - linphone/commitdiff
fix bad behavior with readline6 (linphonec)
authorSimon Morlat <simon.morlat@linphone.org>
Mon, 24 Oct 2011 11:59:24 +0000 (13:59 +0200)
committerSimon Morlat <simon.morlat@linphone.org>
Mon, 24 Oct 2011 11:59:24 +0000 (13:59 +0200)
console/linphonec.c
console/linphonec.h

index 8b061053fd80a8891c8c4de88567a9268204e381..6bb624f1ca1f883226ac729fd576e567ab7abfff 100644 (file)
@@ -553,7 +553,8 @@ char *linphonec_readline(char *prompt){
                }
        }else{
 #ifdef HAVE_READLINE
-               return readline(prompt);
+               char* ret=readline(prompt);
+               return ret;
 #endif
        }
 }
index 9d7487b978e932c9d0d1d7bf981b8882f8c7982b..ba7d346f8408d3999b0a836be6ebc3db98b756c3 100644 (file)
@@ -67,7 +67,7 @@
  * Time between calls to linphonec_idle_call during main
  * input read loop in microseconds.
  */
-#define LPC_READLINE_TIMEOUT 1000000
+#define LPC_READLINE_TIMEOUT 10000
 
 /*
  * Filename of linphonec history