From 9420de8084075bc5ec27046858f2621d458c4004 Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Mon, 21 Feb 2000 16:59:22 +0000 Subject: [PATCH] Mon Feb 21 11:43:50 2000 Jeff Johnston * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT call prior to calling _VFPRINTF_R so reentrant data area is set. (_VFPRINTF_R): Removed now extraneous CHECK_INIT call. --- newlib/ChangeLog | 6 ++++++ newlib/libc/stdio/vfprintf.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 0dde363884..b4147c2aad 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +Mon Feb 21 11:43:50 2000 Jeff Johnston + + * libc/stdio/vfprintf.c (VFPRINTF): Added CHECK_INIT + call prior to calling _VFPRINTF_R so reentrant data area is set. + (_VFPRINTF_R): Removed now extraneous CHECK_INIT call. + Thu Feb 17 01:42:50 2000 J"orn Rennecke * libc/stdio/vfscanf.c (limits.h): #include. diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 4b2043e496..8da76db99f 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -276,6 +276,7 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap), _CONST char *fmt0 _AND va_list ap) { + CHECK_INIT (fp); return _VFPRINTF_R (fp->_data, fp, fmt0, ap); } @@ -396,8 +397,6 @@ _DEFUN (_VFPRINTF_R, (data, fp, fmt0, ap), (u_long)va_arg(ap, u_int)) #endif - CHECK_INIT (fp); - /* sorry, fprintf(read_only_file, "") returns EOF, not 0 */ if (cantwrite(fp)) return (EOF); -- 2.11.0