summaryrefslogtreecommitdiff
path: root/mail/cucipop/files/patch-ac
blob: 391df7a5f4fd9e66cfeabd45f4bcf2a72ee936a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cucipop.c.orig	Tue Jun 26 17:51:11 2001
+++ cucipop.c	Tue Jun 26 17:51:50 2001
@@ -48,7 +48,7 @@
 #include "hsort.h"
 
 #ifdef APOP
-#include "md5/md5.h"
+#include <md5.h>
 #endif
 
 #define MD5_DIGLEN	16
@@ -314,7 +314,7 @@
 
 static void addblock(const off_t start)
 { if(msgs_filled==msgs_max&&
-   !(msgs=realloc(msgs,(msgs_max+=GROWSTEP)*sizeof*msgs)))
+   !(msgs=realloc(msgs,((msgs_max+=GROWSTEP)+1)*sizeof*msgs)))
      outofmem();
   msgs[msgs_filled].order=msgs_filled;msgs[msgs_filled].start=start;
   msgs[msgs_filled].virtsize=0;msgs[msgs_filled++].deleted=0;