diff options
author | pav <pav@FreeBSD.org> | 2005-12-09 16:40:11 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-12-09 16:40:11 +0800 |
commit | d12afa7b8db8757a18038b30925f9e8b76731e06 (patch) | |
tree | 2668ee12570a2b4119881f89db2349874b528c9a /mail | |
parent | 1cd1629f9f4996d151f1f8c3c4ca9b1d6110d2f3 (diff) | |
download | freebsd-ports-gnome-d12afa7b8db8757a18038b30925f9e8b76731e06.tar.gz freebsd-ports-gnome-d12afa7b8db8757a18038b30925f9e8b76731e06.tar.zst freebsd-ports-gnome-d12afa7b8db8757a18038b30925f9e8b76731e06.zip |
- Fix runtime crash
PR: ports/90106
Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Approved by: Robin Breathe <robin@isometry.net> (maintainer)
Obtained from: author
Diffstat (limited to 'mail')
-rw-r--r-- | mail/dovecot-devel/files/patch-src-lib-index-mail-index-sync-ext.c | 16 | ||||
-rw-r--r-- | mail/dovecot/files/patch-src-lib-index-mail-index-sync-ext.c | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/mail/dovecot-devel/files/patch-src-lib-index-mail-index-sync-ext.c b/mail/dovecot-devel/files/patch-src-lib-index-mail-index-sync-ext.c new file mode 100644 index 000000000000..af432b7b06bc --- /dev/null +++ b/mail/dovecot-devel/files/patch-src-lib-index-mail-index-sync-ext.c @@ -0,0 +1,16 @@ +Index: src/lib-index/mail-index-sync-ext.c +=================================================================== +RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-ext.c,v +retrieving revision 1.11 +retrieving revision 1.12 +diff -u -r1.11 -r1.12 +--- src/lib-index/mail-index-sync-ext.c 24 Sep 2005 10:12:03 -0000 1.11 ++++ src/lib-index/mail-index-sync-ext.c 28 Oct 2005 14:10:13 -0000 1.12 +@@ -332,6 +332,7 @@ + unsigned i, count = array_count(&map->extensions); + ssize_t diff = (ssize_t)new_size - (ssize_t)old_size; + ++ ext = array_idx_modifyable(&map->extensions, 0); + for (i = ext_id + 1; i < count; i++) + ext[i].hdr_offset += diff; + } diff --git a/mail/dovecot/files/patch-src-lib-index-mail-index-sync-ext.c b/mail/dovecot/files/patch-src-lib-index-mail-index-sync-ext.c new file mode 100644 index 000000000000..af432b7b06bc --- /dev/null +++ b/mail/dovecot/files/patch-src-lib-index-mail-index-sync-ext.c @@ -0,0 +1,16 @@ +Index: src/lib-index/mail-index-sync-ext.c +=================================================================== +RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync-ext.c,v +retrieving revision 1.11 +retrieving revision 1.12 +diff -u -r1.11 -r1.12 +--- src/lib-index/mail-index-sync-ext.c 24 Sep 2005 10:12:03 -0000 1.11 ++++ src/lib-index/mail-index-sync-ext.c 28 Oct 2005 14:10:13 -0000 1.12 +@@ -332,6 +332,7 @@ + unsigned i, count = array_count(&map->extensions); + ssize_t diff = (ssize_t)new_size - (ssize_t)old_size; + ++ ext = array_idx_modifyable(&map->extensions, 0); + for (i = ext_id + 1; i < count; i++) + ext[i].hdr_offset += diff; + } |