summaryrefslogtreecommitdiff
path: root/lib/pool_alloc.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-04-09 20:17:01 +0000
committerWayne Davison <wayned@samba.org>2004-04-09 20:17:01 +0000
commit04575bcab50c688b26560928e7c0bcd3b6ee32e8 (patch)
tree3d7f52604350088792ed693fbb1229a3a5ca10d2 /lib/pool_alloc.c
parent71b291d71b70cd09865882235fca3a8d35edc6b3 (diff)
downloadrsync-04575bcab50c688b26560928e7c0bcd3b6ee32e8.tar.gz
Missed one void-pointer-arithmetic case.
Diffstat (limited to 'lib/pool_alloc.c')
-rw-r--r--lib/pool_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c
index ab4ff0af..5cf9fbcd 100644
--- a/lib/pool_alloc.c
+++ b/lib/pool_alloc.c
@@ -227,7 +227,7 @@ pool_free(alloc_pool_t p, size_t len, void *addr)
for (prev = NULL, cur = pool->free; cur; prev = cur, cur = cur->next)
{
if (addr >= cur->start
- && addr < cur->start + pool->size)
+ && addr < PTR_ADD(cur->start, pool->size))
break;
}
if (!cur)