Replaced strcpy_s by memcpy