Fixes security of memory copies in the system calls.