Remove an unnecessary memcpy
Merge pull request #7184 from chinhodado/patch-9

Remove an unnecessary memcpy