debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed, memcpy suffices.

2004-08-13  Paolo Carlini  <pcarlini@suse.de>

	* src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
	memmove is not needed, memcpy suffices.

From-SVN: r85949
This commit is contained in:
Paolo Carlini 2004-08-13 16:53:12 +00:00 committed by Paolo Carlini
parent 85a5f64e9f
commit b13de673b1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-08-13 Paolo Carlini <pcarlini@suse.de>
* src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
memmove is not needed, memcpy suffices.
2004-08-13 Paolo Carlini <pcarlini@suse.de>
* include/std/std_fstream.h (class basic_ifstream,

View File

@ -578,7 +578,7 @@ namespace __gnu_debug
const ptrdiff_t __len = __end - __start;
assert(__len < __bufsize);
memmove(__buf, __start, __len);
memcpy(__buf, __start, __len);
__buf[__len] = '\0';
_M_print_word(__buf);
__start = __end;