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;
|
||||
buf+=r;
|
||||
len-=r;
|
||||
if (len) goto do_memcpy;
|
||||
return 0;
|
||||
if (!len) return 0; // wrote everything
|
||||
// fall through
|
||||
} /* else fall through */
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user