dovecot-2.0: anvil: s/memcpy/memmove/ for updating checksum list.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 14 13:39:24 EET 2012
details: http://hg.dovecot.org/dovecot-2.0/rev/8fe5568e2b00
changeset: 13072:8fe5568e2b00
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 14 13:39:00 2012 +0200
description:
anvil: s/memcpy/memmove/ for updating checksum list.
This may have caused anvil to update penalties wrong.
diffstat:
src/anvil/penalty.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 7aaca0f14164 -r 8fe5568e2b00 src/anvil/penalty.c
--- a/src/anvil/penalty.c Wed Mar 14 13:14:28 2012 +0200
+++ b/src/anvil/penalty.c Wed Mar 14 13:39:00 2012 +0200
@@ -136,9 +136,9 @@
rec->checksum_is_pointer = TRUE;
}
- memcpy(rec->checksum.value_ptr + 1, rec->checksum.value_ptr,
- sizeof(rec->checksum.value_ptr[0]) *
- (CHECKSUM_VALUE_PTR_COUNT-1));
+ memmove(rec->checksum.value_ptr + 1, rec->checksum.value_ptr,
+ sizeof(rec->checksum.value_ptr[0]) *
+ (CHECKSUM_VALUE_PTR_COUNT-1));
rec->checksum.value_ptr[0] = checksum;
}
More information about the dovecot-cvs
mailing list