diff options
Diffstat (limited to 'lib/hash.c')
-rw-r--r-- | lib/hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,7 +9,7 @@ static char *CHAINEHACHAGE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX static int FonctionHachage(char *clef) { unsigned int i; - + if (!clef) { exception(1, _("Internal error into hashing")); } @@ -39,6 +39,7 @@ static _ListeChaine InserTete(_ListeChaine l, _Element e) aux = (_ListeChaine) Emalloc(sizeof(struct _LstChn)); aux->Elem.NomVar = (char *) Emalloc(sizeof(char) * (strlen(e.NomVar) + 1)); + for (i = 0; i <= strlen(e.NomVar); i++) { aux->Elem.NomVar[i] = e.NomVar[i]; } |