From 037326c859f53f505df75aafa29a6ea824ce8f2a Mon Sep 17 00:00:00 2001 From: Cobus van Eeden <35851496+cobusve@users.noreply.github.com> Date: Sat, 5 Dec 2020 16:33:39 -0800 Subject: [PATCH] fix heap2 --- portable/MemMang/heap_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portable/MemMang/heap_2.c b/portable/MemMang/heap_2.c index 950148994..e132ae3ea 100644 --- a/portable/MemMang/heap_2.c +++ b/portable/MemMang/heap_2.c @@ -134,7 +134,7 @@ void * pvPortMalloc( size_t xWantedSize ) /* The wanted size must be increased so it can contain a BlockLink_t * structure in addition to the requested amount of bytes. */ if( ( xWantedSize > 0 ) && - ( ( xWantedSize + xHeapStructSize ) > xWantedSize ) ) /* Overflow check */ + ( ( xWantedSize + heapSTRUCT_SIZE ) > xWantedSize ) ) /* Overflow check */ { xWantedSize += heapSTRUCT_SIZE;