--- rpl/src/bibliotheques_externes.c 2017/07/30 21:59:41 1.74 +++ rpl/src/bibliotheques_externes.c 2019/10/31 15:40:00 1.82 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.27 - Copyright (C) 1989-2017 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.32 + Copyright (C) 1989-2019 Dr. BERTRAND Joël This file is part of RPL/2. @@ -376,7 +376,15 @@ chargement_bibliotheque(struct_processus { if ((fleche = strstr(tableau[i], "->")) != NULL) { - strncpy(fleche, "to", 2); + memcpy(fleche, "to", 2); + (*s_etat_processus).s_instructions_externes[(*s_etat_processus) + .nombre_instructions_externes].position_fleche = + fleche - tableau[i]; + } + else + { + (*s_etat_processus).s_instructions_externes[(*s_etat_processus) + .nombre_instructions_externes].position_fleche = -1; } (*s_etat_processus).s_instructions_externes[(*s_etat_processus) @@ -918,7 +926,7 @@ execution_fonction_de_bibliotheque(struc if ((fleche = strstr(nom_fonction, "->")) != NULL) { - strncpy(fleche, "to", 2); + memcpy(fleche, "to", 2); } ordre_iteration = 0;