X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=termlists.c;h=c9a9442f5c5f3c4d1937122e3618d417b1d5811f;hb=4af47baa0641ea00556a351127d7b75e9b6a903e;hp=f663a8778b3b484bd6c2ef1d0a975d62dcf54839;hpb=bd48f097f6b7fca53d326fb84d373fd0962e745b;p=pazpar2-moved-to-github.git diff --git a/termlists.c b/termlists.c index f663a87..c9a9442 100644 --- 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 @@ -119,7 +119,7 @@ void termlist_insert(struct termlist *tl, const char *term) 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))