summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2004-06-08 05:45:32 +0000
committerDavid Schultz <das@FreeBSD.org>2004-06-08 05:45:32 +0000
commit52183d4654e61d240982c5bfa60a05254378c41e (patch)
tree32c47a37c84438fc9b0379f295a4d6bd77642d2b /lib/libc/stdio/vfprintf.c
parent325d97d0d1b2826d9c0ddc5f4319dc5acf5178ff (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 0d78df9b8268..2d720ae3b9de 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -642,7 +642,7 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap)
decimal_point = localeconv()->decimal_point;
#endif
/* sorry, fprintf(read_only_file, "") returns EOF, not 0 */
- if (cantwrite(fp))
+ if (prepwrite(fp) != 0)
return (EOF);
/* optimise fprintf(stderr) (and other unbuffered Unix files) */