On Thu, 13 Jan 2005, Ge van Geldorp wrote: [...]
Couldn't we just make a sane implementation of strncpy, not adding more '\0' characters than necessary and making sure the last character is an '\0'?
That sane implementation already exists as lstrcpynA/lstrcpynW in kernel32.
Btw, Mike actually wrote:
- Wine code should avoid the use of strncpy for these reasons, and instead
- use lstrcpyA/W or memcpy.
So if lstrcpyA/W and not lstrcpynA/W is really what's wanted then we might want to explain a bit more.