X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fstdio%2F__stdio_write.c;h=da45673f23bfd1cad6f3b52fea458f3143e9a874;hb=50da5c264fd84ea2de8cf75bf39ceb81a4eecd71;hp=dd97cf68ac15f08a3c71fc6553418f39185539d4;hpb=58165923890865a6ac042fafce13f440ee986fd9;p=oweals%2Fmusl.git diff --git a/src/stdio/__stdio_write.c b/src/stdio/__stdio_write.c index dd97cf68..da45673f 100644 --- a/src/stdio/__stdio_write.c +++ b/src/stdio/__stdio_write.c @@ -22,6 +22,7 @@ size_t __stdio_write(FILE *f, const unsigned char *buf, size_t len) cnt = syscall_cp(SYS_writev, f->fd, iov, iovcnt); pthread_cleanup_pop(0); if (cnt == rem) { + f->wend = f->buf + f->buf_size; f->wpos = f->wbase = f->buf; return len; }