Index: /soft/giet_vm/libs/malloc.c
===================================================================
--- /soft/giet_vm/libs/malloc.c	(revision 238)
+++ /soft/giet_vm/libs/malloc.c	(revision 239)
@@ -4,10 +4,10 @@
 #include "stdio.h"
 
-heap_ll * _heap_head[NB_TASKS];
-
-unsigned int _heap_base[NB_TASKS];
-unsigned int _heap_length[NB_TASKS];
-
-int _first_malloc[NB_TASKS] = { 0 };
+heap_ll * _heap_head[NB_TASKS_MAX];
+
+unsigned int _heap_base[NB_TASKS_MAX];
+unsigned int _heap_length[NB_TASKS_MAX];
+
+int _first_malloc[NB_TASKS_MAX] = { 0 };
 
 
@@ -15,5 +15,5 @@
 
 #elif MALLOC_SELECTED == 2
-    heap_ll * _prev_next_last_allocted[NB_TASKS] = { 0 };
+    heap_ll * _prev_next_last_allocted[NB_TASKS_MAX] = { 0 };
 #else
     #define MAX_SIZE_POW2_TAB 28 
@@ -47,5 +47,5 @@
                                                    27
 
-    heap_ll * _pow2tab[NB_TASKS][MAX_SIZE_POW2_TAB] = {{ 0 }};
+    heap_ll * _pow2tab[NB_TASKS_MAX][MAX_SIZE_POW2_TAB] = {{ 0 }};
 #endif
 
