summaryrefslogtreecommitdiff
path: root/src/htshash.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-15 12:38:08 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-15 12:38:08 +0000
commitea741caba70b90cf89305cfcb0bff789cdb9e84e (patch)
tree7ba9e0407e5c88a555ce64856c258970d1e40214 /src/htshash.c
parent8fd32cb662052885b9934205129703909670590d (diff)
Fixed error in hashtable (and a warning, too)
Diffstat (limited to 'src/htshash.c')
-rw-r--r--src/htshash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/htshash.c b/src/htshash.c
index b06b68c..455520e 100644
--- a/src/htshash.c
+++ b/src/htshash.c
@@ -91,7 +91,6 @@ static inthash_keys key_adrfil_hashes_generic(void *arg, const char *value_,
const int former) {
hash_struct *const hash = (hash_struct*) arg;
const lien_url*const lien = (lien_url*) value_;
- int i;
const char *const adr = !former ? lien->adr : lien->former_adr;
const char *const fil = !former ? lien->fil : lien->former_fil;
const char *const adr_norm = adr != NULL ?
@@ -107,7 +106,7 @@ static inthash_keys key_adrfil_hashes_generic(void *arg, const char *value_,
if (hash->normalized) {
fil_normalized(fil, &hash->normfil[strlen(hash->normfil)]);
} else {
- strcpy(&hash->normfil[i], fil);
+ strcpy(&hash->normfil[strlen(hash->normfil)], fil);
}
// hash