diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-11-13 10:57:00 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2008-11-13 10:57:00 +0000 |
commit | 80f1f538fb55fffb1be553df833b9a271808fbce (patch) | |
tree | 86dd5c0c5add3c327a8545844a9fe77b0025ddaf /binutils/nm.c | |
parent | 79013c318fcd62ed97f51bfc9397e213976c40e9 (diff) | |
download | binutils-redhat-80f1f538fb55fffb1be553df833b9a271808fbce.tar.gz |
* nm.c (filter_symbols): Only call memcpy when from != to.
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 1dbf47e84a..e11568ab33 100644 --- a/binutils/nm.c +++ b/binutils/nm.c @@ -449,7 +449,8 @@ filter_symbols (bfd *abfd, bfd_boolean dynamic, void *minisyms, if (keep) { - memcpy (to, from, size); + if (to != from) + memcpy (to, from, size); to += size; } } |