changeset 7244:673132f88be3 HEAD

Fixed bad memcpy() usage with memmove().
author Timo Sirainen <tss@iki.fi>
date Fri, 15 Feb 2008 13:23:18 +0200
parents 289765861d66
children dbb7f65e6307
files src/lib-index/mail-index-transaction.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-transaction.c	Thu Feb 14 22:43:28 2008 +0200
+++ b/src/lib-index/mail-index-transaction.c	Fri Feb 15 13:23:18 2008 +0200
@@ -360,7 +360,7 @@
 
 	/* @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];