From 973b6015dd8048ca7074bf3e33c1fd2ba5271f12 Mon Sep 17 00:00:00 2001 From: Aggelos Economopoulos Date: Sun, 23 May 2010 15:33:45 +0300 Subject: [PATCH] libevtr: oops, stay withing the bounds of the hash table --- lib/libevtr/evtr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 * -- 1.7.7.2