buflib: update BUFLIB_ALLOC_OVERHEAD

Allocation overhead should be 5 units, not 6.

Change-Id: I30aa0925aa49eb25d232f7de2bf8b8ce1509d862
This commit is contained in:
Aidan MacDonald 2022-03-30 18:20:03 +01:00
parent 59edcc57a2
commit 3090cf0da4

View file

@ -65,7 +65,7 @@ struct buflib_context
* BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to * BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to
* buflib_alloc_ex()) + pad to pointer size * buflib_alloc_ex()) + pad to pointer size
*/ */
#define BUFLIB_ALLOC_OVERHEAD (6*sizeof(union buflib_data)) #define BUFLIB_ALLOC_OVERHEAD (5*sizeof(union buflib_data))
/** /**
* Callbacks used by the buflib to inform allocation that compaction * Callbacks used by the buflib to inform allocation that compaction