diff options
Diffstat (limited to 'newlib/libc/stdio/vfprintf.c')
-rw-r--r-- | newlib/libc/stdio/vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index d8e46a2..30155ff 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -544,7 +544,7 @@ _DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap), _flockfile (fp); /* sorry, fprintf(read_only_file, "") returns EOF, not 0 */ - if (cantwrite (fp)) { + if (cantwrite (data, fp)) { _funlockfile (fp); return (EOF); } |