[vlc-devel] [PATCH 1/1] Fix mingw failing to handle %zu

Jean-Baptiste Kempf jb at videolan.org
Fri Nov 14 07:14:59 CET 2008


On Thu, Nov 13, 2008 at 09:34:43PM +0000, davidf+nntp at woaf.net wrote :
> The version of mingw currently [1] in use uses a non mscrt vsnprintf()
> that does not understand the length modifer z; Arguments such as:
>   ...printf("%zu %s", 4, "x");
> will result in treating the second argument as a string.

IIRC, it needs %Iu instead of %zu...
So MingW should be affected, CYGWIN not.

Don't ask me why. (except that Microsoft doesn't respect ISO)

Best Regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the vlc-devel mailing list