diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-03-31 15:18:55 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-04-08 09:28:09 +0200 |
commit | d39940113a24078bd563b0cfce4225648c632544 (patch) | |
tree | b8798223f9e96921d94bbba9666b0ba7ab297b83 /lib | |
parent | ab0a881bb4015d0b32f4f577f2bbd3ca72d31217 (diff) | |
download | samba-d39940113a24078bd563b0cfce4225648c632544.tar.gz samba-d39940113a24078bd563b0cfce4225648c632544.tar.bz2 samba-d39940113a24078bd563b0cfce4225648c632544.zip |
talloc: use TC_HDR_SIZE instead of sizeof(struct talloc_chunk)
As this includes the padding to 16 bytes.
metze
Signed-off-By: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/talloc/talloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c index c616f3458c..1c5f76922a 100644 --- a/lib/talloc/talloc.c +++ b/lib/talloc/talloc.c @@ -334,7 +334,7 @@ _PUBLIC_ const char *talloc_parent_name(const void *ptr) static unsigned int *talloc_pool_objectcount(struct talloc_chunk *tc) { - return (unsigned int *)((char *)tc + sizeof(struct talloc_chunk)); + return (unsigned int *)((char *)tc + TC_HDR_SIZE); } /* |