diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-03-11 22:13:30 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-03-11 22:13:30 +0300 |
commit | d84985f794d9b19d24bef473d5f189967d3d774e (patch) | |
tree | 9b6457c3f25afd0b9e1c8a0dd1a04ef7d195fbe4 | |
parent | 88348faf5b464209aed4e508547cf9411b1dd98f (diff) |
2008-03-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure
stdin gets resolved properly before refilling.
-rw-r--r-- | newlib/ChangeLog | 2 | ||||
-rw-r--r-- | newlib/libc/stdio/rget.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 93000d4e3..c5013d5fe 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,6 +1,6 @@ 2008-03-11 Jeff Johnston <jjohnstn@redhat.com> - * libc/stdio/rgetc.c (__srget): Invoke CHECK_INIT to ensure + * libc/stdio/rgetc.c (__srget_r): Invoke CHECK_INIT to ensure stdin gets resolved properly before refilling. 2008-03-07 Jeff Johnston <jjohnstn@redhat.com> diff --git a/newlib/libc/stdio/rget.c b/newlib/libc/stdio/rget.c index 0a1cc147f..9474bd9f6 100644 --- a/newlib/libc/stdio/rget.c +++ b/newlib/libc/stdio/rget.c @@ -38,7 +38,7 @@ _DEFUN(__srget_r, (ptr, fp), { /* Ensure that any fake std stream is resolved before we call __srefill_r so we may access the true read buffer. */ - CHECK_INIT(fp); + CHECK_INIT(ptr, fp); if (__srefill_r (ptr, fp) == 0) { |