23 Dec
2004
23 Dec
'04
8:19 p.m.
Robert Shearman <rob(a)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. -- Alexandre Julliard julliard(a)winehq.org