]> diplodocus.org Git - nmh/commitdiff
uip/picksbr.c: Increase line-buffer size for "grep" action.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 7 May 2017 17:02:03 +0000 (18:02 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 7 May 2017 17:02:03 +0000 (18:02 +0100)
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'.

uip/picksbr.c

index 21cdb2c..02be140 100644 (file)
@@ -62,7 +62,7 @@ DEFINE_SWITCH_ARRAY(PARSE, parswit);
 
 #define        STAR    01
 
-#define LBSIZE  1024
+#define LBSIZE  NMH_BUFSIZ
 #define        ESIZE   1024