summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c
index 518237cde8..9ba793092d 100644
--- a/source3/lib/talloc.c
+++ b/source3/lib/talloc.c
@@ -75,7 +75,7 @@ void *talloc(TALLOC_CTX *t, size_t size)
t->list = c;
}
- p = t->list->ptr + t->list->alloc_size;
+ p = ((char *)t->list->ptr) + t->list->alloc_size;
t->list->alloc_size += size;
return p;
}