Commit 9a634b93 9a634b93c85617fe56c4606f3a692a37437c4080 by Sergey Poznyakoff

(_file_write): Return ENOSPC if fwrite returns 0.

1 parent 070ac168
......@@ -188,6 +188,8 @@ _file_write (mu_stream_t stream, const char *iptr, size_t isize,
{
if (feof (fs->file) == 0)
err = EIO;
else if (n == 0)
err = ENOSPC;
clearerr(fs->file);
n = 0;
}
......