From: Wietse Venema Date: Wed, 17 Jan 2007 05:00:00 +0000 (-0500) Subject: postfix-2.4-20070117 X-Git-Tag: v2.4.0-RC1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f7ba2932919b77906461c207a6ed148cae25ea4;p=thirdparty%2Fpostfix.git postfix-2.4-20070117 --- diff --git a/postfix/src/cleanup/cleanup_body_region.c b/postfix/src/cleanup/cleanup_body_region.c index 7ad47b05c..5c04d89f9 100644 --- a/postfix/src/cleanup/cleanup_body_region.c +++ b/postfix/src/cleanup/cleanup_body_region.c @@ -171,7 +171,7 @@ int cleanup_body_region_write(CLEANUP_STATE *state, int rec_type, * terminator record. */ REC_SPACE_NEED(LEN(buf), rec_len); - if (rp->len > 0 && (used = state->body_write_offs - rp->start, + while (rp->len > 0 && (used = state->body_write_offs - rp->start, rec_len + REC_TYPE_PTR_SIZE > rp->len - used)) { /* diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index 4dac78e6c..acd961db0 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -20,7 +20,7 @@ * Patches change both the patchlevel and the release date. Snapshots have no * patchlevel; they change the release date only. */ -#define MAIL_RELEASE_DATE "20070116" +#define MAIL_RELEASE_DATE "20070117" #define MAIL_VERSION_NUMBER "2.4" #ifdef SNAPSHOT