Fixes memcpy usage.

Corrected one place where my_strncpy was called with overlapped memory.
Added a assert in my_strncpy to try to find some moar on production.