From 410f59d29fa384971e7e71a279a353399e78c28c Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Wed, 11 Jan 1995 19:18:30 +0000 Subject: Fixed a sizeof(off_t) != sizeof(int) problem. --- mail/procmail/files/patch-aa | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'mail/procmail') diff --git a/mail/procmail/files/patch-aa b/mail/procmail/files/patch-aa index 72e54bf28215..3eee51edcd64 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 */ + } -- cgit v1.2.3