summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-11 20:12:46 +0000
committerJeremy Allison <jra@samba.org>2000-01-11 20:12:46 +0000
commit8f4e672094546e9a3e06b8c2da0607809ecb2cab (patch)
treef24608f5ed4239e53350420cd417fc5fef6a0357 /source3
parentec5b3043bfdf2a92e1dfeead0fa70f1c5d61cbdb (diff)
downloadsamba-8f4e672094546e9a3e06b8c2da0607809ecb2cab.tar.gz
samba-8f4e672094546e9a3e06b8c2da0607809ecb2cab.tar.bz2
samba-8f4e672094546e9a3e06b8c2da0607809ecb2cab.zip
Fixed pointer arithmetic found by IRIX compiler.
Jeremy. (This used to be commit 20d72e8959fc800836369e4c970f7cb84b95ac9a)
Diffstat (limited to 'source3')
-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;
}