Misplaced parenthesis calculates two too few bytes for string
authorAlan Modra <amodra@gmail.com>
Sun, 28 Dec 2014 04:58:19 +0000 (15:28 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 28 Dec 2014 05:04:01 +0000 (15:34 +1030)
commitde0d78958fe3db5184c5a7174f55f08d41c8706b
tree64ae2b93a4c00849e1cc9731b4d89d97972bce55
parentce637ffbe6b75a4a676bbf5f68434abf5261ba99
Misplaced parenthesis calculates two too few bytes for string

Factor out strlen to give better code and less likelihood of a repeat
of this problem.

PR 17766
* pei-x86_64.c (pex64_bfd_print_pdata_section): Correct string
length.  Use memcpy rather than strcpy.
bfd/ChangeLog
bfd/pei-x86_64.c