summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/freelistcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/common/freelistcheck.c')
-rw-r--r--source4/lib/tdb/common/freelistcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/freelistcheck.c b/source4/lib/tdb/common/freelistcheck.c
index 3f79a016b8..63d2dbadc2 100644
--- a/source4/lib/tdb/common/freelistcheck.c
+++ b/source4/lib/tdb/common/freelistcheck.c
@@ -39,7 +39,7 @@ static int seen_insert(struct tdb_context *mem_tdb, tdb_off_t rec_ptr)
TDB_DATA key, data;
memset(&data, '\0', sizeof(data));
- key.dptr = (char *)&rec_ptr;
+ key.dptr = (unsigned char *)&rec_ptr;
key.dsize = sizeof(rec_ptr);
return tdb_store(mem_tdb, key, data, TDB_INSERT);
}