From f55f6f60063bf56c4a7708601b8ae3eb8dc6d990 Mon Sep 17 00:00:00 2001
From: lpaucot_uclouvain <laurent.paucot@student.uclouvain.be>
Date: Tue, 21 Apr 2020 09:45:17 +0200
Subject: [PATCH] test

---
 Projet_M2/run.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Projet_M2/run.c b/Projet_M2/run.c
index f86baa6..bba77d4 100755
--- a/Projet_M2/run.c
+++ b/Projet_M2/run.c
@@ -195,7 +195,7 @@ void *writing(void *param){
         if (pr_divs->final == 1)
         {   
             //printf("final : %d\n",pr_divs->final);
-            if (stop == N-1){
+            if (stop == N-2){
                 for (int i = 0; i < param1->size; i++)
                 {
                     param1->tab[i] = NULL;
-- 
GitLab