what if the left-over from writev does not fit into the buffer?

master
leitner 3 years ago
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…
Cancel
Save