Commit 4a5c0af6e6c9e11d4160452ac6f0f4574db842d6

Authored by mertz
1 parent f5b960c9

correction erreur caractère de séparation se suivant

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -54,7 +54,7 @@ void add(struct node **tab_ptr_tree, wchar_t val[],int taille, int fl) @@ -54,7 +54,7 @@ void add(struct node **tab_ptr_tree, wchar_t val[],int taille, int fl)
54 int size(wchar_t val[]) 54 int size(wchar_t val[])
55 { 55 {
56 int cpt = 0; 56 int cpt = 0;
57 - while(val[cpt]!='[cpt]!='\0')') 57 + while(val!= NULL && val[cpt]!='[cpt]!='\0')')
58 { 58 {
59 cpt++; 59 cpt++;
60 } 60 }
@@ -216,4 +216,4 @@ int split_text(dico Dico,wchar_t message[], wchar_t separateur[]) @@ -216,4 +216,4 @@ int split_text(dico Dico,wchar_t message[], wchar_t separateur[])
216 if(buffer!=NULL)err += split_text(Dico,buffer,separateur); 216 if(buffer!=NULL)err += split_text(Dico,buffer,separateur);
217 217
218 return err; 218 return err;
219 -}  
220 \ No newline at end of file 219 \ No newline at end of file
  220 +}