commit 16f69ef6d68c42e28f9ac626a21d754f08a3eedc parent 8c85428fd00e9f17b7790941685c53e09fb50c06 Auteur: Selve <selve@asteride.xyz> Date: Tue, 14 Nov 2023 13:22:10 -0500 remplacement de realloc par malloc Diffstat:
M | tampon.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tampon.c b/tampon.c @@ -8,7 +8,7 @@ int t_init(struct tampon *t, size_t taille) { - if ((t->t = realloc(t->t, taille)) == NULL) + if ((t->t = malloc(taille)) == NULL) return -1; t->taille = taille; t->pcar = t->t;