aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-12-09 16:40:11 +0800
committerpav <pav@FreeBSD.org>2005-12-09 16:40:11 +0800
commitd12afa7b8db8757a18038b30925f9e8b76731e06 (patch)
tree2668ee12570a2b4119881f89db2349874b528c9a /mail
parent1cd1629f9f4996d151f1f8c3c4ca9b1d6110d2f3 (diff)
downloadfreebsd-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.c16
-rw-r--r--mail/dovecot/files/patch-src-lib-index-mail-index-sync-ext.c16
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;
+ }