dovecot-1.0: Fixed bad memcpy() usage with memmove().
dovecot at dovecot.org
dovecot at dovecot.org
Fri Feb 15 13:23:03 EET 2008
details: http://hg.dovecot.org/dovecot-1.0/rev/e2b802b27bad
changeset: 5516:e2b802b27bad
user: Timo Sirainen <tss at iki.fi>
date: Fri Feb 15 13:23:20 2008 +0200
description:
Fixed bad memcpy() usage with memmove().
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-index-sync-update.c | 4 ++--
diffs (14 lines):
diff -r f829403b6b9c -r e2b802b27bad src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Wed Feb 13 20:23:27 2008 +0200
+++ b/src/lib-index/mail-index-sync-update.c Fri Feb 15 13:23:20 2008 +0200
@@ -583,8 +583,8 @@ 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