Diff for /rpl/src/instructions_u1.c between versions 1.3 and 1.5

version 1.3, 2010/02/10 10:14:25 version 1.5, 2010/03/04 17:42:46
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.11    RPL/2 (R) version 4.0.12
   Copyright (C) 1989-2010 Dr. BERTRAND Joël    Copyright (C) 1989-2010 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
Line 782  instruction_use(struct_processus *s_etat Line 782  instruction_use(struct_processus *s_etat
             {              {
                 free(tampon);                  free(tampon);
   
                 if ((tampon = malloc((strlen((unsigned char *)                  if ((*s_etat_processus).rpl_home == NULL)
                         (*s_objet_argument).objet) + strlen(d_exec_path) + 7)  
                         * sizeof(unsigned char))) == NULL)  
                 {                  {
                     (*s_etat_processus).erreur_systeme =                      if ((tampon = malloc((strlen((unsigned char *)
                             d_es_allocation_memoire;                              (*s_objet_argument).objet) + strlen(d_exec_path)
                     return;                              + 7) * sizeof(unsigned char))) == NULL)
                       {
                           (*s_etat_processus).erreur_systeme =
                                   d_es_allocation_memoire;
                           return;
                       }
   
                       sprintf(tampon, "/%s/lib/%s", d_exec_path, (unsigned char *)
                               (*s_objet_argument).objet);
                 }                  }
                   else
                   {
                       if ((tampon = malloc((strlen((unsigned char *)
                               (*s_objet_argument).objet) +
                               strlen((*s_etat_processus).rpl_home)
                               + 7) * sizeof(unsigned char))) == NULL)
                       {
                           (*s_etat_processus).erreur_systeme =
                                   d_es_allocation_memoire;
                           return;
                       }
   
                 sprintf(tampon, "/%s/lib/%s", d_exec_path, (unsigned char *)                      sprintf(tampon, "/%s/lib/%s", (*s_etat_processus).rpl_home,
                         (*s_objet_argument).objet);                              (unsigned char *) (*s_objet_argument).objet);
                   }
   
                 caracteristiques_fichier(s_etat_processus, tampon,                  caracteristiques_fichier(s_etat_processus, tampon,
                         &existence, &ouverture, &unite);                          &existence, &ouverture, &unite);

Removed from v.1.3  
changed lines
  Added in v.1.5


CVSweb interface <joel.bertrand@systella.fr>