actually increase stralloc.len
This commit is contained in:
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…
x
Reference in New Issue
Block a user