From 9cfa465107943c2b9692fb7b1b6a3719c87df93c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 14 Nov 2009 16:45:13 +0000 Subject: [PATCH] handle embedded '\0' (ITS#6379) --- servers/slapd/schema_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++ = '$'; } -- 2.39.5