]> git.sur5r.net Git - openldap/commitdiff
handle embedded '\0' (ITS#6379)
authorPierangelo Masarati <ando@openldap.org>
Sat, 14 Nov 2009 16:45:13 +0000 (16:45 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 14 Nov 2009 16:45:13 +0000 (16:45 +0000)
servers/slapd/schema_init.c

index 1957190ab37a4cc1e2ce3c91bf8a526654c103ca..55fc2fa8888127464fae42dd5fbb0a67cff5ff17 100644 (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++ = '$';
        }