projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1999604
)
libevtr: oops, stay withing the bounds of the hash table
author
Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Sun, 23 May 2010 12:33:45 +0000 (15:33 +0300)
committer
Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Wed, 26 May 2010 13:21:43 +0000 (16:21 +0300)
lib/libevtr/evtr.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/libevtr/evtr.c
b/lib/libevtr/evtr.c
index
7bf61e7
..
235bff0
100644
(file)
--- 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 *