From: Kurt Zeilenga Date: Thu, 27 Jan 2000 01:43:12 +0000 (+0000) Subject: Last commit was a bit premature. This fixes up compiler X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3238 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cdcb0390ba2b3d1f2aa46c049712ac8c18013a56;p=openldap Last commit was a bit premature. This fixes up compiler bugs and adds temporary code to glue things until we sort out unicode UTF-8 vs UCS-4 vs UCS-2 issues. --- diff --git a/servers/slapd/schema.c b/servers/slapd/schema.c index 9913f12880..a0b0c5e7f3 100644 --- a/servers/slapd/schema.c +++ b/servers/slapd/schema.c @@ -928,11 +928,13 @@ IA5StringConvert( struct berval *in, struct berval **out ) { + typedef ldap_ucs4_t ldap_unicode_t; /* TEMPORARY */ + int i; struct berval *bv = ch_malloc( sizeof(struct berval) ); bv->bv_len = (in->bv_len+1) * sizeof( ldap_unicode_t ); bv->bv_val = ch_malloc( bv->bv_len ); - for(i=0; i < val->bv_len; i++ ) { + for(i=0; i < in->bv_len; i++ ) { /* * IA5StringValidate should have been called to ensure * input is limited to IA5.