--- rpl/src/instructions_s2.c 2013/02/27 17:11:44 1.47 +++ rpl/src/instructions_s2.c 2013/03/21 11:30:30 1.48 @@ -1035,8 +1035,8 @@ instruction_str_fleche(struct_processus unsigned char registre_interruption; unsigned char *tampon; - unsigned long nombre_caracteres_supplementaires; - unsigned long position_courante; + integer8 nombre_caracteres_supplementaires; + integer8 position_courante; (*s_etat_processus).erreur_execution = d_ex; @@ -1155,9 +1155,9 @@ instruction_str_fleche(struct_processus // de caractères incluses. Le seul caractère protégé est le '\' // qui est doublé. - if ((chaine_convertie = malloc((strlen(tampon) + - nombre_caracteres_supplementaires + 1) * sizeof(unsigned char))) - == NULL) + if ((chaine_convertie = malloc((strlen(tampon) + ((size_t) + nombre_caracteres_supplementaires) + 1) * + sizeof(unsigned char))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return;