handle embedded '\0' (ITS#6379)

This commit is contained in:
Pierangelo Masarati 2009-11-14 16:45:13 +00:00
parent dd2f158b52
commit 9cfa465107

View File

@ -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++ = '$';
}