convert strncpy->memcpy.

this time for real. Not sure what happened in the earlier commit.