no need to use wcsncpy, just use memcpy