From 72502c6837cc998d98fb2a313274ca68a9acc6b8 Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Fri, 13 Jan 2023 20:28:12 +0100 Subject: [PATCH] Ajustements. --- src/partie1/saeP1.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/partie1/saeP1.c b/src/partie1/saeP1.c index d5d86f2..f7ebd62 100644 --- a/src/partie1/saeP1.c +++ b/src/partie1/saeP1.c @@ -293,6 +293,9 @@ void creerDep(VilleIUT* tiut[],int tlogi){ printf("\n\nEntrez le nom du responsable de département : \n"); scanf("%*c"); fgets(m->resp, 51, stdin); + int i=0; + while(m->resp[i+1]!='\0')i++; + m->resp[i]='\0' printf("\n\nLe département %s a bien été ajouté à l'IUT de %s.\n",m->departement,ville); return; }