Commit 2d91a076 by Paolo Carlini Committed by Paolo Carlini

localename.cc (locale::_Impl::_Impl): Slightly improve the algorithm used to name the categories.

2004-06-28  Paolo Carlini  <pcarlini@suse.de>

	* src/localename.cc (locale::_Impl::_Impl): Slightly improve
	the algorithm used to name the categories.

From-SVN: r83778
parent e4cb0c04
2004-06-28 Paolo Carlini <pcarlini@suse.de>
* src/localename.cc (locale::_Impl::_Impl): Slightly improve
the algorithm used to name the categories.
2004-06-28 Paolo Bonzini <bonzini@gnu.org> 2004-06-28 Paolo Bonzini <bonzini@gnu.org>
* include/Makefile.am: Give a .gch extension to * include/Makefile.am: Give a .gch extension to
......
...@@ -209,11 +209,11 @@ namespace std ...@@ -209,11 +209,11 @@ namespace std
} }
else else
{ {
const char* __beg = __s; const char* __end = __s;
for (size_t __i = 0; __i < _S_categories_size; ++__i) for (size_t __i = 0; __i < _S_categories_size; ++__i)
{ {
__beg = std::strchr(__beg, '=') + 1; const char* __beg = std::strchr(__end + 1, '=') + 1;
const char* __end = std::strchr(__beg, ';'); __end = std::strchr(__beg, ';');
if (!__end) if (!__end)
__end = __s + __len; __end = __s + __len;
_M_names[__i] = new char[__end - __beg + 1]; _M_names[__i] = new char[__end - __beg + 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment