Diff for /rpl/src/formateur_fichiers.c between versions 1.5 and 1.7

version 1.5, 2010/03/07 17:03:29 version 1.7, 2010/03/09 09:19:49
Line 1176  formateur_fichier(struct_processus *s_et Line 1176  formateur_fichier(struct_processus *s_et
                 return(NULL);                  return(NULL);
             }              }
   
             chaine = (unsigned char *) malloc((strlen((unsigned char *)              if ((longueur_champ == -1) || (strlen((unsigned char *)
                     ((*s_objet).objet)) + 1) * sizeof(unsigned char));                      (*s_objet).objet) < longueur_champ))
   
             if (chaine == NULL)  
             {              {
                 (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;                  chaine = (unsigned char *) malloc((strlen((unsigned char *)
                 return(NULL);                          ((*s_objet).objet)) + 1) * sizeof(unsigned char));
   
                   if (chaine == NULL)
                   {
                       (*s_etat_processus).erreur_systeme =
                               d_es_allocation_memoire;
                       return(NULL);
                   }
   
                   strcpy(chaine, (unsigned char *) ((*s_objet).objet));
             }              }
               else
               {
                   chaine = (unsigned char *) malloc((longueur_champ + 1)
                           * sizeof(unsigned char));
   
             strcpy(chaine, (unsigned char *) ((*s_objet).objet));                  if (chaine == NULL)
                   {
                       (*s_etat_processus).erreur_systeme =
                               d_es_allocation_memoire;
                       return(NULL);
                   }
   
                   strncpy(chaine, (unsigned char *) ((*s_objet).objet),
                           longueur_champ);
                   chaine[longueur_champ] = d_code_fin_chaine;
               }
         }          }
         else if ((*s_objet).type == CPL)          else if ((*s_objet).type == CPL)
         {          {
Line 5634  formateur_fichier_nombre(struct_processu Line 5655  formateur_fichier_nombre(struct_processu
             strcat(construction_chaine, tampon);              strcat(construction_chaine, tampon);
             free(tampon);              free(tampon);
   
             if (test_cfsf(s_etat_processus, 48) == d_faux)              strcat(construction_chaine, ",");
             {  
                 strcat(construction_chaine, ",");  
             }  
             else  
             {  
                 strcat(construction_chaine, ".");  
             }  
   
             tampon = formateur_fichier_reel(s_etat_processus,              tampon = formateur_fichier_reel(s_etat_processus,
                     (void *) &((*((struct_complexe16 *)                      (void *) &((*((struct_complexe16 *)

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


CVSweb interface <joel.bertrand@systella.fr>