commit | fd2bb9d4b97d18ba75d5e7882c720df598d764f6 | [log] [tgz] |
---|---|---|
author | H. Peter Anvin <hpa@zytor.com> | Thu May 17 10:26:31 2012 -0700 |
committer | H. Peter Anvin <hpa@zytor.com> | Thu May 17 10:26:31 2012 -0700 |
tree | d677c08f1fc5429b886d7f4e79683e5c0abe7c05 | |
parent | 8a95f4d87fd3adf59c68bbd8ba85830e511e59ea [diff] |
[klibc] fwrite: fix the implementation of _IONBF The _IONBF implementation was a duplicate of _IOFBF, which is obviously incorrect. Actually make sure we flush after each write. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/usr/klibc/stdio/fwrite.c b/usr/klibc/stdio/fwrite.c index d167257..5d2c3f0 100644 --- a/usr/klibc/stdio/fwrite.c +++ b/usr/klibc/stdio/fwrite.c
@@ -82,8 +82,8 @@ case _IONBF: default: - pf_len = 0; - pu_len = count; + pf_len = count; + pu_len = 0; break; }