diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-12-09 13:51:15 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-12-09 13:51:15 +0200 |
commit | fb8500cbf8f0bc434e4296dc68bf1b5578676e9e (patch) | |
tree | 833fe95355ed1d11130d5e45921b12b9f0897bbf | |
parent | 9d7397382a66464d281611aa35da765b1a28ca81 (diff) | |
download | pies-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.c | 2 |
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; |