From: Pierangelo Masarati Date: Sat, 14 Nov 2009 16:45:13 +0000 (+0000) Subject: handle embedded '\0' (ITS#6379) X-Git-Tag: ACLCHECK_0~126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cfa465107943c2b9692fb7b1b6a3719c87df93c;p=openldap handle embedded '\0' (ITS#6379) --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 1957190ab3..55fc2fa888 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2265,7 +2265,7 @@ postalAddressNormalize( p = normalized->bv_val; for ( l = 0; !BER_BVISNULL( &nlines[l] ); l++ ) { - p = lutil_strncopy( p, nlines[l].bv_val, nlines[l].bv_len ); + p = lutil_memcopy( p, nlines[l].bv_val, nlines[l].bv_len ); *p++ = '$'; }