libSYS: protect against memcpy overflow

The issue: When built with clang, we get minor memcpy
buffer overflows here on a few devices such as M7.

The solution:
Clear the target buffer, then copy only what we
actually have.

Test Plan: verify

Reviewers: randall.rushing