aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-12-09 13:51:15 +0200
committerSergey Poznyakoff <gray@gnu.org>2020-12-09 13:51:15 +0200
commitfb8500cbf8f0bc434e4296dc68bf1b5578676e9e (patch)
tree833fe95355ed1d11130d5e45921b12b9f0897bbf
parent9d7397382a66464d281611aa35da765b1a28ca81 (diff)
downloadpies-fb8500cbf8f0bc434e4296dc68bf1b5578676e9e.tar.gz
pies-fb8500cbf8f0bc434e4296dc68bf1b5578676e9e.tar.bz2
Fix handling of very long captured lines
* src/progman.c (redirect_read): Break the loop if no newline is found.
-rw-r--r--src/progman.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/progman.c b/src/progman.c
index 02034ef..008d186 100644
--- a/src/progman.c
+++ b/src/progman.c
@@ -416,6 +416,8 @@ redirect_read (int fd, void *data)
rb->len = 0;
rb->overflow = 1;
}
+ else
+ break;
}
}
return 0;

Return to:

Send suggestions and report system problems to the System administrator.