[LOSTWAGES] Add janitorial task to avoid using strncpy

Francois Gouget fgouget at free.fr
Thu Jan 13 11:29:28 CST 2005


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.


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
                   In a world without fences who needs Gates?



More information about the wine-devel mailing list