OSDN Git Service

2004-08-13 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Aug 2004 16:53:12 +0000 (16:53 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Aug 2004 16:53:12 +0000 (16:53 +0000)
* src/debug.cc (_Error_formatter::_M_print_string): Fix thinko,
memmove is not needed, memcpy suffices.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85949 138bc75d-0d04-0410-961f-82ee72b054a4

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

index c6a1b1c..fa495e3 100644 (file)
@@ -1,4 +1,9 @@
 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
index 20295fb..0ca9238 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;