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; }