summaryrefslogtreecommitdiff
path: root/stdio-common/vfscanf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-10 00:01:27 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-10 00:01:27 +0000
commit68bd3326bf4b1598c94dd60416da3ae82b4139ee (patch)
treeb7d0469ede409f8b7afc70e7333a1a193433e9bd /stdio-common/vfscanf.c
parent30d13751354ba7eeabbce754b06650b99884c3c3 (diff)
Update.
2001-08-09 Ulrich Drepper <drepper@redhat.com> * time/tst-strptime.c: Add tests in different locales. * time/Makefile (tst-strptime-ENV): Define.
Diffstat (limited to 'stdio-common/vfscanf.c')
-rw-r--r--stdio-common/vfscanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
index 6312af719e..3c5bccbdc6 100644
--- a/stdio-common/vfscanf.c
+++ b/stdio-common/vfscanf.c
@@ -755,7 +755,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
{
/* We have to convert the multibyte input sequence to wide
characters. */
- char buf[0];
+ char buf[1];
mbstate_t cstate;
memset (&cstate, '\0', sizeof (cstate));
@@ -1058,7 +1058,7 @@ __vfscanf (FILE *s, const char *format, va_list argptr)
}
#else
{
- char buf[0];
+ char buf[1];
buf[0] = c;