memset also needs to have the right type.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 10 Oct 2013 22:53:35 +0000 (00:53 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 10 Oct 2013 22:58:19 +0000 (00:58 +0200)
citadel/modules/imap/serv_imap.c

index 7fb85e7f7124f563b8b53eb514d64eefb8cfc3a3..6b69a9bdc9d897171ed394d99146e4521ba14ac9 100644 (file)
@@ -329,7 +329,7 @@ void imap_load_msgids(void)
 
        if (Imap->num_msgs) {
                Imap->flags = malloc(Imap->num_alloc * sizeof(unsigned int));
-               memset(Imap->flags, 0, (Imap->num_alloc * sizeof(long)) );
+               memset(Imap->flags, 0, (Imap->num_alloc * sizeof(unsigned int)) );
        }
 
        imap_set_seen_flags(0);