Re: [Spice-devel] [vdagent-win V2 3/6] Fix Visual Studio compiler warning (strncpy)

2014-03-26 Thread Uri Lublin
On 03/26/2014 02:05 PM, Christophe Fergeau wrote: On Mon, Mar 24, 2014 at 07:02:40PM +0200, Uri Lublin wrote: Visual Studio complains: vdagent\file_xfer.h(28) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable depreca

Re: [Spice-devel] [vdagent-win V2 3/6] Fix Visual Studio compiler warning (strncpy)

2014-03-26 Thread Christophe Fergeau
On Mon, Mar 24, 2014 at 07:02:40PM +0200, Uri Lublin wrote: > Visual Studio complains: > vdagent\file_xfer.h(28) : warning C4996: 'strncpy': This function or > variable may be unsafe. > Consider using strncpy_s instead. > To disable deprecation, use _CRT_SECURE_NO_WARNINGS. > See o

[Spice-devel] [vdagent-win V2 3/6] Fix Visual Studio compiler warning (strncpy)

2014-03-24 Thread Uri Lublin
Visual Studio complains: vdagent\file_xfer.h(28) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. Replace strncpy with strcpy_s, which is impleme