From c842ff73e769b4c35007c866778be0b3840160fe Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 15 Jul 2011 08:04:17 +0000 Subject: * libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r to make sure CHECK_INIT is called. (_fscanf_r): Ditto. * /libc/stdio/scanf.c (scanf): Ditto. (_scanf_r): Ditto. * libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of __svfwscanf_r to make sure CHECK_INIT is called. (_fwscanf_r): Ditto. * libc/stdio/wscanf.c (wscanf): Ditto. (_wscanf_r): Ditto. --- newlib/libc/stdio/wscanf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc/stdio/wscanf.c') diff --git a/newlib/libc/stdio/wscanf.c b/newlib/libc/stdio/wscanf.c index 671727425..abe8dc07a 100644 --- a/newlib/libc/stdio/wscanf.c +++ b/newlib/libc/stdio/wscanf.c @@ -32,7 +32,7 @@ wscanf(_CONST wchar_t *fmt, ...) _REENT_SMALL_CHECK_INIT (_REENT); va_start (ap, fmt); - ret = __svfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); + ret = _vfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); va_end (ap); return ret; } @@ -47,7 +47,7 @@ _wscanf_r(struct _reent *ptr, _CONST wchar_t *fmt, ...) _REENT_SMALL_CHECK_INIT (ptr); va_start (ap, fmt); - ret = __svfwscanf_r (ptr, _stdin_r (ptr), fmt, ap); + ret = _vfwscanf_r (ptr, _stdin_r (ptr), fmt, ap); va_end (ap); return (ret); } -- cgit v1.2.3