summaryrefslogtreecommitdiff
path: root/mail/isync/patches/patch-ac
blob: 597570ea63bbf3392d6c337a7f4a875947b0ff14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.2 2003/12/27 16:54:06 seb Exp $

--- src/sync.c.orig	2003-05-07 00:06:37.000000000 +0000
+++ src/sync.c
@@ -53,7 +53,7 @@ set_uid (DBM * db, const char *f, unsign
 
     key.dptr = (void *) f;
     s = strchr (f, ':');
-    key.dsize = s ? (size_t) (s - key.dptr) : strlen (f);
+    key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (f);
     val.dptr = (void *) &uid;
     val.dsize = sizeof (uid);
     dbm_store (db, key, val, DBM_REPLACE);