actually increase stralloc.len

This commit is contained in:
leitner 2014-03-15 13:27:37 +00:00
parent 53e2af7389
commit cf3dc34288

View File

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