1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/mail/mh/files/patch-ah
Peter Wemm 19d481cd4e Increase the max length of the .mh_sequences lines from 2048 to 4096
(BUFSIZ * 2 -> BUFSIZ * 4).  I found out the hard way that when the
"unseen:" squence hits the limit, all sorts of things start failing and
this causes secondary problems in exmh (like you can't delete things).
Since "memory is cheap" this should probably be bigger, except that 2900
unseen messages in your inbox is already slow.
1997-02-03 04:57:25 +00:00

54 lines
1.5 KiB
Plaintext

--- sbr/m_seq.c.dist Wed Dec 1 12:01:24 1993
+++ sbr/m_seq.c Mon Feb 3 12:39:31 1997
@@ -16,7 +16,7 @@
int mask;
register int i, j;
register char *bp;
- static char buffer[BUFSIZ*2]; /* for big sequences */
+ static char buffer[BUFSIZ * 4]; /* for big sequences */
if (strcmp (current, cp) == 0) {
/* assume this is in sync with msgstats["cur"] */
--- sbr/m_gmsg.c.dist Wed Dec 1 12:01:24 1993
+++ sbr/m_gmsg.c Mon Feb 3 12:40:25 1997
@@ -211,7 +211,7 @@
state;
register char *cp;
char name[NAMESZ],
- field[BUFSIZ * 2];
+ field[BUFSIZ * 4];
register struct node *np;
register FILE * fp;
--- sbr/m_sync.c.dist Wed Dec 1 12:01:25 1993
+++ sbr/m_sync.c Mon Feb 3 12:41:21 1997
@@ -26,7 +26,7 @@
register char *cp;
char flags,
attr[BUFSIZ],
- seq[BUFSIZ * 2];
+ seq[BUFSIZ * 4];
register FILE *fp;
#ifndef BSD42
TYPESIG (*hstat) (), (*istat) (), (*qstat) (), (*tstat) ();
--- uip/vmhsbr.c.dist Wed Dec 1 12:01:39 1993
+++ uip/vmhsbr.c Mon Feb 3 12:42:08 1997
@@ -197,7 +197,7 @@
{
int eindex = errno;
register char *bp;
- char buffer[BUFSIZ * 2];
+ char buffer[BUFSIZ * 4];
(void) sprintf (buffer, fmt, a, b, c, d, e, f);
bp = buffer + strlen (buffer);
@@ -230,7 +230,7 @@
*e,
*f;
{
- static char buffer[BUFSIZ * 2];
+ static char buffer[BUFSIZ * 4];
(void) sprintf (buffer, fmt, a, b, c, d, e, f);