diff --git a/buffer/buffer_tosa.c b/buffer/buffer_tosa.c index 99812ea..a10be4f 100644 --- a/buffer/buffer_tosa.c +++ b/buffer/buffer_tosa.c @@ -4,6 +4,7 @@ static ssize_t strallocwrite(int fd,char* buf,size_t len,void* myself) { buffer* b=myself; stralloc* sa=b->cookie; + sa->len+=len; if (stralloc_readyplus(sa,1024)==0) return 0; b->x=sa->s+sa->len; b->p=0;