- logf (LOG_DEBUG, "dict_lookup: %s", term->u.general->buf);
- if (!(info = dict_lookup (zi->wordDict, term->u.general->buf)))
- {
- rset_temp_parms parms;
-
- parms.key_size = sizeof(struct it_key);
- return rset_create (rset_kind_temp, &parms);
- }
+ sizez = term->u.general->len;
+ if (sizez > 255)
+ sizez = 255;
+ memcpy (termz, term->u.general->buf, sizez);
+ termz[sizez] = '\0';
+ logf (LOG_DEBUG, "dict_lookup: %s", termz);
+ if (!(info = dict_lookup (zi->wordDict, termz)))
+ return rset_create (rset_kind_null, NULL);