mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
ITS#5558 fix buffer count
This commit is contained in:
parent
cd5e10250a
commit
04c841209d
2 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ read_and_send_results(
|
|||
}
|
||||
|
||||
len = strlen( line );
|
||||
while ( bp + len - buf > bsize ) {
|
||||
while ( bp + len + 1 - buf > bsize ) {
|
||||
size_t offset = bp - buf;
|
||||
bsize += BUFSIZ;
|
||||
buf = (char *) ch_realloc( buf, bsize );
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ sock_read_and_send_results(
|
|||
}
|
||||
|
||||
len = strlen( line );
|
||||
while ( bp + len - buf > bsize ) {
|
||||
while ( bp + len + 1 - buf > bsize ) {
|
||||
size_t offset = bp - buf;
|
||||
bsize += BUFSIZ;
|
||||
buf = (char *) ch_realloc( buf, bsize );
|
||||
|
|
|
|||
Loading…
Reference in a new issue