From: Aggelos Economopoulos Date: Sun, 23 May 2010 12:33:45 +0000 (+0300) Subject: libevtr: oops, stay withing the bounds of the hash table X-Git-Tag: v2.8.0~979 X-Git-Url: http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/973b6015dd8048ca7074bf3e33c1fd2ba5271f12 libevtr: oops, stay withing the bounds of the hash table --- diff --git a/lib/libevtr/evtr.c b/lib/libevtr/evtr.c index 7bf61e7..235bff0 100644 --- a/lib/libevtr/evtr.c +++ b/lib/libevtr/evtr.c @@ -599,7 +599,7 @@ static uintptr_t hashfunc_pointer(uintptr_t p) { - return p; + return p % NR_BUCKETS; } struct hashtab *