mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
Fix off-by-one in v2ref
This commit is contained in:
parent
d1841b5c1f
commit
cbc5c8494e
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ static char *v2ref( struct berval **ref, const char *text )
|
|||
v2 = ch_realloc( v2, len + ref[i]->bv_len + 1 );
|
||||
v2[len-1] = '\n';
|
||||
memcpy(&v2[len], ref[i]->bv_val, ref[i]->bv_len );
|
||||
len += ref[i]->bv_len;
|
||||
len += ref[i]->bv_len + 1;
|
||||
}
|
||||
|
||||
v2[len-1] = '\0';
|
||||
|
|
|
|||
Loading…
Reference in a new issue