what if the left-over from writev does not fit into the buffer?
This commit is contained in:
parent
de672180ac
commit
276cd8ef9e
@ -31,8 +31,8 @@ int buffer_put(buffer* b,const char* buf,size_t len) {
|
|||||||
b->p=0;
|
b->p=0;
|
||||||
buf+=r;
|
buf+=r;
|
||||||
len-=r;
|
len-=r;
|
||||||
if (len) goto do_memcpy;
|
if (!len) return 0; // wrote everything
|
||||||
return 0;
|
// fall through
|
||||||
} /* else fall through */
|
} /* else fall through */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user