aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorKalev Lember <kalev@smartlink.ee>2009-08-06 18:35:48 (GMT)
committerKalev Lember <kalev@smartlink.ee>2009-09-01 15:47:36 (GMT)
commit3aa570ccbccd12bdc481f5d767b6bef52257d0ad (patch)
tree319bbfdf89dafe372a74958baf8a64f12b8e0a27 /main.c
parente4712e43c08d110be1f6b0dae4f14a64f1cba6d9 (diff)
downloadpowwow-3aa570ccbccd12bdc481f5d767b6bef52257d0ad.zip
powwow-3aa570ccbccd12bdc481f5d767b6bef52257d0ad.tar.gz
powwow-3aa570ccbccd12bdc481f5d767b6bef52257d0ad.tar.bz2
Match prompts longer than terminal width
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=509288
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9e680a2..508015a 100644
--- a/main.c
+++ b/main.c
@@ -783,7 +783,7 @@ static void process_singleline __P2 (char **,pbuf, int *,psize)
* if a #prompt matches and sets #isprompt, then it is REALLY a prompt
* so never match #actions on it.
*/
- if (lineend == end && tcp_fd == tcp_main_fd && printstrlen(linestart) < cols) {
+ if (lineend == end && tcp_fd == tcp_main_fd) {
/*
* The last line in the chunk we received has no trailing \n
* Assume it is a prompt.