Robert Shearman rob@codeweavers.com writes:
The strncpyW function exists for a reason. Also, it is better to use strlenW than lstrlenW.
Actually strncpy(W) is almost always the wrong thing to use. If you want to copy a fixed length (like in that case) memcpy is a much better choice; if you want to copy and possibly truncate a string lstrcpynA/W is preferable.