summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-03-30 18:20:03 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-09-19 15:09:51 -0400
commit3090cf0da4edde67234faaeda18de91fa91aa5ef (patch)
treea113ed274f9cd67de86348ebb8166f12a7cb7bcd
parent59edcc57a28b883b05d6d50b42cccc764191b0f3 (diff)
downloadrockbox-3090cf0da4edde67234faaeda18de91fa91aa5ef.tar.gz
rockbox-3090cf0da4edde67234faaeda18de91fa91aa5ef.zip
buflib: update BUFLIB_ALLOC_OVERHEAD
Allocation overhead should be 5 units, not 6. Change-Id: I30aa0925aa49eb25d232f7de2bf8b8ce1509d862
-rw-r--r--firmware/include/buflib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/buflib.h b/firmware/include/buflib.h
index e805ebbf1b..5bd8d73ada 100644
--- a/firmware/include/buflib.h
+++ b/firmware/include/buflib.h
@@ -65,7 +65,7 @@ struct buflib_context
* BUFLIB_ALLOC_OVERHEAD + requested bytes + strlen(<name passed to
* 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