projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove illegal ccl characters from subject refinements.
[pazpar2-moved-to-github.git]
/
termlists.c
diff --git
a/termlists.c
b/termlists.c
index
f663a87
..
c9a9442
100644
(file)
--- a/
termlists.c
+++ b/
termlists.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: termlists.c,v 1.2 2006-11-27 14:35:15 quinn Exp $
+ * $Id: termlists.c,v 1.3 2006-12-08 21:40:58 quinn Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-119,7
+119,7
@@
void termlist_insert(struct termlist *tl, const char *term)
unsigned int bucket;
struct termlist_bucket **p;
unsigned int bucket;
struct termlist_bucket **p;
- bucket = hash(term) & tl->hashmask;
+ bucket = hash((unsigned char *)term) & tl->hashmask;
for (p = &tl->hashtable[bucket]; *p; p = &(*p)->next)
{
if (!strcmp(term, (*p)->term.term))
for (p = &tl->hashtable[bucket]; *p; p = &(*p)->next)
{
if (!strcmp(term, (*p)->term.term))