Fix warning C4996

I fixed warning C4996.
The warning caused because of using unsafe strcpy.