summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/wbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/wbuf.c')
-rw-r--r--newlib/libc/stdio/wbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c
index 5f1e85a27..ea8f64d8d 100644
--- a/newlib/libc/stdio/wbuf.c
+++ b/newlib/libc/stdio/wbuf.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1990 The Regents of the University of California.
+ * Copyright (c) 1990, 2007 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
@@ -53,7 +53,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp),
*/
fp->_w = fp->_lbfsize;
- if (cantwrite (fp))
+ if (cantwrite (ptr, fp))
{
fp->_flags |= __SERR;
ptr->_errno = EBADF;