Fix off-by-one in v2ref

This commit is contained in:
Howard Chu 1999-12-02 05:19:24 +00:00
parent d1841b5c1f
commit cbc5c8494e

View file

@ -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';