From d0a5a694df48128d65ed00393b4f247f201dbd0c Mon Sep 17 00:00:00 2001
From: zgajewskidec <corentin.zgajewski@student.uclouvain.be>
Date: Sun, 26 Apr 2020 11:37:13 +0200
Subject: [PATCH] imagine

---
 Projet_M2/run.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Projet_M2/run.c b/Projet_M2/run.c
index 777e203..d4ae5e2 100755
--- a/Projet_M2/run.c
+++ b/Projet_M2/run.c
@@ -86,7 +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
     printf("check24\n");
-    buf->tab[buf->head] = malloc(sizeof(ptr));
+    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;
@@ -218,12 +218,12 @@ void *writing(void *param){
             *current = *pr_divs->tail;
             current = current->next;
 
-            fprintf(file2,"%llul",current->value);
+            fprintf(file2,"%llu",current->value);
             current = current->next;
 
             for (int i = 1; i < pr_divs->size; i++)
             {
-                fprintf(file2," %llul",current->value);
+                fprintf(file2," %llu",current->value);
                 current = current->next;
             }
             fputc('\n',file2);
-- 
GitLab