mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#6233 don't advance ptr after storing final NUL.
This commit is contained in:
parent
016c518652
commit
82874bed6e
@ -2073,7 +2073,7 @@ print_deref( LDAP *ld, LDAPControl *ctrl )
|
||||
}
|
||||
ptr = lutil_strncopy( ptr, dr->derefVal.bv_val, dr->derefVal.bv_len );
|
||||
*ptr++ = '\n';
|
||||
*ptr++ = '\0';
|
||||
*ptr = '\0';
|
||||
assert( ptr <= buf + len );
|
||||
|
||||
tool_write_ldif( LDIF_PUT_COMMENT, NULL, buf, ptr - buf);
|
||||
|
Loading…
Reference in New Issue
Block a user