aboutsummaryrefslogtreecommitdiff
path: root/bfd/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hash.c')
-rw-r--r--bfd/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/hash.c b/bfd/hash.c
index 9766eaf..a498cce 100644
--- a/bfd/hash.c
+++ b/bfd/hash.c
@@ -375,8 +375,8 @@ bfd_hash_lookup (table, string, create, copy)
{
hash += c + (c << 17);
hash ^= hash >> 2;
- ++len;
}
+ len = (s - (const unsigned char *) string) - 1;
hash += len + (len << 17);
hash ^= hash >> 2;