locale_facets.tcc (time_get::_M_extract_name): Fix.

2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/4542
	* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.

From-SVN: r46529
This commit is contained in:
Benjamin Kosnik 2001-10-26 06:23:47 +00:00 committed by Benjamin Kosnik
parent 6cf5465d43
commit 013e8d9783
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/4545

View File

@ -1566,7 +1566,7 @@ namespace std
ios_base::iostate& __err) const
{
typedef char_traits<char_type> __traits_type;
int __matches[__indexlen];
int* __matches = static_cast<int*>(__builtin_alloca(sizeof(int) * __indexlen));
size_t __nmatches = 0;
size_t __pos = 0;
bool __testvalid = true;