summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index 8cfd02f1d4..23864b56e9 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2847,8 +2847,8 @@ PerlIOStdio_fill(pTHX_ PerlIO *f)
* buffer, so we stuff it in the buffer ourselves.
* Should never get called as should hit code above
*/
- *(--((*fp)->_ptr)) = (unsigned char) c;
- (*fp)->_cnt++;
+ *(--((*stdio)->_ptr)) = (unsigned char) c;
+ (*stdio)->_cnt++;
#else
/* If buffer snoop scheme above fails fall back to
using ungetc (but why did "fill" get called?).