From: Paolo Carlini Date: Fri, 13 Aug 2004 16:53:12 +0000 (+0000) Subject: debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed,... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b13de673b1fee82b3864646ab6a77a31ce393bd0;p=gcc.git debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed, memcpy suffices. 2004-08-13 Paolo Carlini * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed, memcpy suffices. From-SVN: r85949 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c6a1b1c0e96..fa495e32ac4 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-08-13 Paolo Carlini + + * src/debug.cc (_Error_formatter::_M_print_string): Fix thinko, + memmove is not needed, memcpy suffices. + 2004-08-13 Paolo Carlini * include/std/std_fstream.h (class basic_ifstream, diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index 20295fb2898..0ca9238fe00 100644 --- a/libstdc++-v3/src/debug.cc +++ b/libstdc++-v3/src/debug.cc @@ -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;