[Spice-devel] [PATCH spice 2/3] syntax-check: Skip strncpy check

Christophe Fergeau cfergeau at redhat.com
Fri Nov 18 10:58:19 UTC 2016


On Fri, Nov 18, 2016 at 11:45:40AM +0100, Pavel Grunt wrote:
> strncpy used in reds_init_socket() has destination NUL terminated
> ---
> An alternative would be to use g_strlcpy

I'd prefer to switch to g_strlcpy and that we prohibit strncpy. But I'd
prefer not to do that before a release :)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20161118/61c57b0d/attachment.sig>


More information about the Spice-devel mailing list