From: Ralph Corderoy Date: Sun, 7 May 2017 17:02:03 +0000 (+0100) Subject: uip/picksbr.c: Increase line-buffer size for "grep" action. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/7bfe75eb886c771652273199ee759e4d63157712?ds=inline uip/picksbr.c: Increase line-buffer size for "grep" action. Alter LBSIZE from 1024 to NMH_BUFSIZ, e.g. 8192. This dominates the size of the char array used to hold a single unfolded header line when evaluating a "grep" action, e.g. `-to foo' becomes `^to[ ^I]*:.*foo'. --- diff --git a/uip/picksbr.c b/uip/picksbr.c index 21cdb2ca..02be1408 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -62,7 +62,7 @@ DEFINE_SWITCH_ARRAY(PARSE, parswit); #define STAR 01 -#define LBSIZE 1024 +#define LBSIZE NMH_BUFSIZ #define ESIZE 1024