From: Howard Chu Date: Sun, 18 Jul 2004 12:29:52 +0000 (+0000) Subject: Make sure hdb gets signed chars for len comparison X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26b475893891e626b6e096bcc6c8c350fbe1e16d;p=openldap Make sure hdb gets signed chars for len comparison --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 6ab0a03780..2bb31dcd46 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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 */