diff options
author | Paolo Carlini <pcarlini@suse.de> | 2004-08-13 16:53:12 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2004-08-13 16:53:12 +0000 |
commit | b13de673b1fee82b3864646ab6a77a31ce393bd0 (patch) | |
tree | 6ed5f687aa593bbedf56d7dae268151b939713ea /libstdc++-v3 | |
parent | 85a5f64e9f026e3cc3747867454bd720c459f780 (diff) | |
download | gcc-b13de673b1fee82b3864646ab6a77a31ce393bd0.zip gcc-b13de673b1fee82b3864646ab6a77a31ce393bd0.tar.gz gcc-b13de673b1fee82b3864646ab6a77a31ce393bd0.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/src/debug.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c6a1b1c..fa495e3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc index 20295fb..0ca9238 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; |