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

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

diff --git a/Projet_M2/run.c b/Projet_M2/run.c
index fce850f..70ceee9 100755
--- a/Projet_M2/run.c
+++ b/Projet_M2/run.c
@@ -86,6 +86,7 @@ char *get_from_buffer_1(struct buffer_rc *ptr){ // chercher dans le buffer 1
 
 void put_in_buffer_2(struct queue *ptr, struct buffer_cw *buf){ //ajouter un element dans le buffer 2
     
+    buf->tab[buf->head] = malloc(sizeof(ptr));
     buf->tab[buf->head] = ptr;
     buf->len++; //augmenté l'espace occupé par le buffer
     buf->head = (buf->head + 1)%buf->size;
-- 
GitLab