[Dovecot] another sizeof tweak

Timo Sirainen tss at iki.fi
Tue Nov 8 23:09:52 EET 2011


On Tue, 2011-11-08 at 18:46 +0200, Timo Sirainen wrote:
> On 8.11.2011, at 18.43, Mike Abbott wrote:
> 
> > Line 776 of dovecot-2.0.15/src/lib-storage/index/maildir/maildir-sync-index.c reads:
> > 	    memcmp(old_rec, &new_rec, sizeof(old_rec)) != 0) {
> > Should that be sizeof(*old_rec)?
> 
> Yep, looks like was fixed in v2.1 already. I'll fix it for v2.0 too.

Actually it doesn't matter in v2.0 since this is mailbox list indexing
code, which is forcibly disabled (and broken) in v2.0.





More information about the dovecot mailing list