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

master
Felix von Leitner 7 months ago
parent b6f868eaab
commit 8ca5aa48a5
  1. 4
      buffer/buffer_put.c

@ -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