--- rpl/src/formateur_fichiers.c 2012/05/21 17:25:41 1.42 +++ rpl/src/formateur_fichiers.c 2012/06/22 10:12:19 1.43 @@ -1497,6 +1497,17 @@ formateur_fichier(struct_processus *s_et } position_3 = strlen(format_chaine); + + if (format_chaine[position_3] != ')') + { + free(chaine); + free(format_chaine); + + (*s_etat_processus).erreur_execution = + d_ex_erreur_format_fichier; + return(NULL); + } + format_chaine[--position_3] = d_code_fin_chaine; position_2 = position_1;