summaryrefslogtreecommitdiffstats
path: root/mail/procmail
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1995-01-11 19:18:30 +0000
committerdfr <dfr@FreeBSD.org>1995-01-11 19:18:30 +0000
commitf753c5c2dd6cc0788da1d25ded235601601031cc (patch)
treefcab686b73e5821995e171386a950beaa6eb8a39 /mail/procmail
parent1fcd443520808adce7b775f680a1bac6362b7e85 (diff)
downloadFreeBSD-ports-f753c5c2dd6cc0788da1d25ded235601601031cc.zip
FreeBSD-ports-f753c5c2dd6cc0788da1d25ded235601601031cc.tar.gz
Fixed a sizeof(off_t) != sizeof(int) problem.
Diffstat (limited to 'mail/procmail')
-rw-r--r--mail/procmail/files/patch-aa19
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/procmail/files/patch-aa b/mail/procmail/files/patch-aa
index 72e54bf..3eee51e 100644
--- a/mail/procmail/files/patch-aa
+++ b/mail/procmail/files/patch-aa
@@ -65,3 +65,22 @@
pnewname: lastm=nowm;saddr=strcpy(malloc(strlen(saddr)+1),saddr);
if(namep)
free(namep);
+*** src/misc.c.old Wed Jan 11 18:11:02 1995
+--- src/misc.c Wed Jan 11 17:40:33 1995
+***************
+*** 290,296 ****
+ { if(sp->filled==sp->tspace) /* growth limit reached? */
+ { if(!sp->offs)
+ sp->offs=malloc(1);
+! sp->offs=realloc(sp->offs,(sp->tspace+=4)*sizeof sp->offs); /* expand */
+ }
+ sp->offs[sp->filled++]=val; /* append to it */
+ }
+--- 290,296 ----
+ { if(sp->filled==sp->tspace) /* growth limit reached? */
+ { if(!sp->offs)
+ sp->offs=malloc(1);
+! sp->offs=realloc(sp->offs,(sp->tspace+=4)*sizeof(off_t)); /* expand */
+ }
+ sp->offs[sp->filled++]=val; /* append to it */
+ }
OpenPOWER on IntegriCloud