1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2001-08-09  Ulrich Drepper  <drepper@redhat.com>

	* time/tst-strptime.c: Add tests in different locales.
	* time/Makefile (tst-strptime-ENV): Define.
This commit is contained in:
Ulrich Drepper
2001-08-10 00:01:27 +00:00
parent 30d1375135
commit 68bd3326bf
4 changed files with 46 additions and 11 deletions

View File

@ -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;