diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
| commit | e74101e4eff767325553039def89de70b70f36d3 (patch) | |
| tree | b19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/ungetc.c | |
| parent | 149004e99dc4abe92b530803e963e50943750f40 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/ungetc.c')
| -rw-r--r-- | lib/libc/stdio/ungetc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index 9273d07803aa..cb38e9eaa4a0 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -112,6 +112,9 @@ ungetc(int c, FILE *fp) int __ungetc(int c, FILE *fp) { + + ORIENT(fp, -1); + if (c == EOF) return (EOF); if ((fp->_flags & __SRD) == 0) { |
