dovecot: Fixed bad memcpy() usage with memmove().

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 15 13:23:09 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/97b8ea4dd200
changeset: 7243:97b8ea4dd200
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 15 13:23:17 2008 +0200
description:
Fixed bad memcpy() usage with memmove().

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-transaction.c |    2 +-

diffs (12 lines):

diff -r f24fd0a7d453 -r 97b8ea4dd200 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Thu Feb 14 22:43:26 2008 +0200
+++ b/src/lib-index/mail-index-transaction.c	Fri Feb 15 13:23:17 2008 +0200
@@ -360,7 +360,7 @@ mail_index_update_day_headers(struct mai
 
 	/* @UNSAFE: move days forward and fill the missing days with old
 	   day_first_uid[0]. */
-	memcpy(hdr.day_first_uid + days, hdr.day_first_uid, max_days - days);
+	memmove(hdr.day_first_uid + days, hdr.day_first_uid, max_days - days);
 	for (i = 1; i < days; i++)
 		hdr.day_first_uid[i] = hdr.day_first_uid[0];
 


More information about the dovecot-cvs mailing list