$OpenBSD: patch-src_maildir_c,v 1.1 2004/05/11 13:54:56 naddy Exp $
--- src/maildir.c.orig	2004-05-08 17:51:31.000000000 +0200
+++ src/maildir.c	2004-05-08 17:52:07.000000000 +0200
@@ -239,7 +239,7 @@ maildir_open (const char *path, int flag
 	     */
 	    key.dptr = p->file;
 	    s = strchr (key.dptr, ':');
-	    key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
+	    key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
 	    key = dbm_fetch (m->db, key);
 	    if (key.dptr)
 	    {
@@ -294,7 +294,7 @@ maildir_expunge (mailbox_t * mbox, int d
 	    /* remove the message from the UID map */
 	    key.dptr = tmp->file;
 	    s = strchr (key.dptr, ':');
-	    key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
+	    key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
 	    dbm_delete (mbox->db, key);
 	    *cur = (*cur)->next;
 	    free (tmp->file);
