From da8959d8187245a4936b43313912f8612d7dbc3f Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Fri, 13 Jan 2023 18:40:08 +0100 Subject: [PATCH] Ajustements. --- src/partie1/saeP1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partie1/saeP1.c b/src/partie1/saeP1.c index fb7fa51..4862e85 100644 --- a/src/partie1/saeP1.c +++ b/src/partie1/saeP1.c @@ -347,7 +347,7 @@ void modifNomResponsable(VilleIUT* tiut[],int tlogi){ VilleIUT* v=tiut[noVille]; printf("\n\nEntrez le département à modifier:"); char dep[31]; - scanf("%s",dep); + scanf("%*c%s",dep); if(!existeDep(v->ldept,dep)){ fprintf(stderr,"\nDépartement non existant !\n"); return;