From 187c0e67c0b1ed61a0cf248f09c8a12326c2a92c Mon Sep 17 00:00:00 2001 From: Corto Callerisa Date: Sun, 5 May 2019 22:23:57 +0200 Subject: [PATCH] ajout images pour le readme et fichier .gitignore, fix dernier bug_mémoire --- .gitignore | 2 ++ dictionnaire.c | 2 +- img/benchmark.png | Bin 0 -> 95775 bytes img/compilation.png | Bin 0 -> 91511 bytes img/warnings.png | Bin 0 -> 201789 bytes 5 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 img/benchmark.png create mode 100644 img/compilation.png create mode 100644 img/warnings.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da13d65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +correcteur \ No newline at end of file diff --git a/dictionnaire.c b/dictionnaire.c index e502e98..fdcb859 100644 --- a/dictionnaire.c +++ b/dictionnaire.c @@ -118,7 +118,7 @@ bool importer_dict(const char *nom_dic) Noeud *prochain_noeud_vide = reserve_noeuds; // On transfère le fichier depuis un stream dans un tableau - char *buffer = malloc(taille_fic); // +1 pour le caractere de terminaison + char *buffer = malloc(taille_fic+1); // +1 pour le caractere de terminaison fread(buffer, 1, taille_fic, dict); // Marque la fin du fichier diff --git a/img/benchmark.png b/img/benchmark.png new file mode 100644 index 0000000..8902467 Binary files /dev/null and b/img/benchmark.png differ diff --git a/img/compilation.png b/img/compilation.png new file mode 100644 index 0000000..3feece6 Binary files /dev/null and b/img/compilation.png differ diff --git a/img/warnings.png b/img/warnings.png new file mode 100644 index 0000000..073296d Binary files /dev/null and b/img/warnings.png differ -- libgit2 0.21.2