openbsd-ports/net/honeyd/patches/patch-pool_c
aanriot 28eb1cee77 update to 1.5b .
from Rui Reis with a few changes;
help and ok sturm@
2007-04-03 15:19:52 +00:00

13 lines
440 B
Plaintext

$OpenBSD: patch-pool_c,v 1.2 2007/04/03 15:19:52 aanriot Exp $
--- pool.c.orig Sat Aug 19 09:10:40 2006
+++ pool.c Mon Apr 2 00:12:08 2007
@@ -92,7 +92,7 @@ pool_alloc_size(struct pool *pool, size_t size)
/* We want to use the last one as return */
if (i < max - 1) {
SLIST_INSERT_HEAD(&pool->entries, entry, next);
- p += sizeof(struct pool_entry) + size;
+ p += ALIGN(sizeof(struct pool_entry) + size);
}
}
}