debug.cc (_Error_formatter::_M_print_string): Fix thinko, memmove is not needed,...
authorPaolo Carlini <pcarlini@suse.de>
Fri, 13 Aug 2004 16:53:12 +0000 (16:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 13 Aug 2004 16:53:12 +0000 (16:53 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/src/debug.cc

index c6a1b1c0e962601dad62122dd3945b0dec535eb3..fa495e32ac43aba3f0a233751f06071d7c67eae0 100644 (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,
index 20295fb28989ac3774fef63ee20b327a9f793b6b..0ca9238fe00395bc15c7992dc4572e49c2050d6e 100644 (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;