buffer's size. Large writes were overflowing it.
$Log$
+ Revision 641.18 2005/03/03 18:10:27 ajc
+ * sysdep.c: change the algorithm for dynamically expanding the redirect
+ buffer's size. Large writes were overflowing it.
+
Revision 641.17 2005/03/03 17:56:53 ajc
* Finished removing the use of temp files in IMAP.
WARNING: DON'T USE THIS ON A PRODUCTION SYSTEM, IT HAS NOT BEEN
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
if (CC->redirect_buffer != NULL) {
if ((CC->redirect_len + nbytes + 2) >= CC->redirect_alloc) {
- CC->redirect_alloc = CC->redirect_alloc * 2;
+ CC->redirect_alloc = (CC->redirect_alloc * 2) + nbytes;
CC->redirect_buffer = realloc(CC->redirect_buffer,
CC->redirect_alloc);
}