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:
parent
85a5f64e9f
commit
b13de673b1
|
@ -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>
|
2004-08-13 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* include/std/std_fstream.h (class basic_ifstream,
|
* include/std/std_fstream.h (class basic_ifstream,
|
||||||
|
|
|
@ -578,7 +578,7 @@ namespace __gnu_debug
|
||||||
|
|
||||||
const ptrdiff_t __len = __end - __start;
|
const ptrdiff_t __len = __end - __start;
|
||||||
assert(__len < __bufsize);
|
assert(__len < __bufsize);
|
||||||
memmove(__buf, __start, __len);
|
memcpy(__buf, __start, __len);
|
||||||
__buf[__len] = '\0';
|
__buf[__len] = '\0';
|
||||||
_M_print_word(__buf);
|
_M_print_word(__buf);
|
||||||
__start = __end;
|
__start = __end;
|
||||||
|
|
Loading…
Reference in New Issue