Commit 26b47589 authored by Howard Chu's avatar Howard Chu
Browse files

Make sure hdb gets signed chars for len comparison

parent af5ab4f1
......@@ -517,8 +517,8 @@ hdb_dup_compare(
const DBT *usrkey,
const DBT *curkey )
char *u = (char *)&(((diskNode *)(usrkey->data))->nrdnlen);
char *c = (char *)&(((diskNode *)(curkey->data))->nrdnlen);
signed char *u = (signed char *)&(((diskNode *)(usrkey->data))->nrdnlen);
signed char *c = (signed char *)&(((diskNode *)(curkey->data))->nrdnlen);
int rc, i;
/* data is not aligned, cannot compare directly */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment