diff --git a/buffer/buffer_putflush.c b/buffer/buffer_putflush.c index 84dcdaa..616b06d 100644 --- a/buffer/buffer_putflush.c +++ b/buffer/buffer_putflush.c @@ -43,6 +43,7 @@ int buffer_putflush(buffer* b,const char* x,size_t len) { return buffer_stubborn(b->op,b->fd,v[1].iov_base+w,v[1].iov_len-w,b); } } + b->p=0; return 0; } #endif