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:53:35 +0000 (00:53 +0200)
citadel/modules/imap/serv_imap.c

index 5a1e6aaea706d6fe8b60d2a8a9768346df964db6..168c7e71a23bbaa6c2e138c0a13b7d4909d3bd3e 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);