svn commit: samba r8127 - in branches/SAMBA_4_0/source/lib/talloc: .
tridge at samba.org
tridge at samba.org
Mon Jul 4 07:26:27 GMT 2005
Author: tridge
Date: 2005-07-04 07:26:27 +0000 (Mon, 04 Jul 2005)
New Revision: 8127
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8127
Log:
fixed code in function error
Modified:
branches/SAMBA_4_0/source/lib/talloc/talloc.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/talloc.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/talloc.c 2005-07-04 07:10:21 UTC (rev 8126)
+++ branches/SAMBA_4_0/source/lib/talloc/talloc.c 2005-07-04 07:26:27 UTC (rev 8127)
@@ -111,8 +111,7 @@
static struct talloc_chunk *talloc_chunk_from_ptr(const void *ptr)
{
const char *pp = ptr;
- pp -= TC_HDR_SIZE;
- struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp);
+ struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp - TC_HDR_SIZE);
if ((tc->flags & ~0xF) != TALLOC_MAGIC) {
TALLOC_ABORT("Bad talloc magic value - unknown value");
}
More information about the samba-cvs
mailing list