ITS#5558 fix buffer count

This commit is contained in:
Howard Chu 2008-06-14 02:50:59 +00:00
parent cd5e10250a
commit 04c841209d
2 changed files with 2 additions and 2 deletions

View file

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

View file

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