actually increase stralloc.len

master
leitner 11 years ago
parent 53e2af7389
commit cf3dc34288

@ -4,6 +4,7 @@
static ssize_t strallocwrite(int fd,char* buf,size_t len,void* myself) { static ssize_t strallocwrite(int fd,char* buf,size_t len,void* myself) {
buffer* b=myself; buffer* b=myself;
stralloc* sa=b->cookie; stralloc* sa=b->cookie;
sa->len+=len;
if (stralloc_readyplus(sa,1024)==0) return 0; if (stralloc_readyplus(sa,1024)==0) return 0;
b->x=sa->s+sa->len; b->x=sa->s+sa->len;
b->p=0; b->p=0;

Loading…
Cancel
Save