[Spice-devel] [vdagent-win V2 4/6] Fix Visual Studio compiler warning (sscanf/strcat)

Christophe Fergeau cfergeau at redhat.com
Wed Oct 15 06:34:14 PDT 2014


On Mon, Oct 13, 2014 at 05:26:17PM +0300, Uri Lublin wrote:
> Finally got to give your suggestion a try.
> My system is Fedora 20, with mingw32-headers-3.2.0-1.fc20.noarch installed.
> 
> At first I was able to build with strcat_s, but the program failed to run on
> Windows XP, claiming it was missing that function.
> As you've mention sscanf_s needs to be declared in the src file, but the
> program
> failed to run on Windows XP, claiming it was missing that function. (This
> should
> probably be added to mingw's sec_api/string.h)
> After playing with it, I was able to make it work, by linking with
> -lmsvcr100
> and installing "Microsoft Visual C++ 2010 redistributable (x86)" on the
> Windows XP.

But when building with vc++, you can use strcat_s without installing
this runtime?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141015/07bdc645/attachment.sig>


More information about the Spice-devel mailing list