Commit b13de673 by Paolo Carlini Committed by Paolo Carlini

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
parent 85a5f64e
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,
class basic_ofstream, class basic_fstream): Add const overloads
......
......@@ -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;
......
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