On Sun, 2017-07-30 at 23:40 +0300, Denis Shulyaka wrote:
> If only part of the buffer is written into stdout by stdout_callback, the
> buffer_index variable is increased by the number of written bytes,
> buffer_length variable is decreased while the allocated buffer size remains
> the same.
If only part of the buffer is written into stdout by stdout_callback, the
buffer_index variable is increased by the number of written bytes,
buffer_length variable is decreased while the allocated buffer size remains the
same. That suggests that the current allocated size is calculated as