FYI:  wcsncpy does not guarantee null-termination when the source is >= n characters.