From c2fb321235c8dbfba0909bc43913400e90646ae7 Mon Sep 17 00:00:00 2001 From: espie Date: Fri, 17 Jun 2005 20:40:30 +0000 Subject: next citrus step. reviewed by millert, otto, kevlo, naddy, kettenis... libc+libstdc++ bump --- lib/libc/stdio/ungetc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio/ungetc.c') diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index dc16a8ad562..579ab2cd90d 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: ungetc.c,v 1.7 2005/04/30 09:25:17 espie Exp $"; +static char rcsid[] = "$OpenBSD: ungetc.c,v 1.8 2005/06/17 20:40:32 espie Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -85,6 +85,7 @@ ungetc(int c, FILE *fp) return (EOF); if (!__sdidinit) __sinit(); + _SET_ORIENTATION(fp, -1); if ((fp->_flags & __SRD) == 0) { /* * Not already reading: no good unless reading-and-writing. -- cgit v1.2.3-59-g8ed1b