[flac-dev] patch for win_utf8_io.c: vsnprintf_s vs. MinGW

Erik de Castro Lopo mle+la at mega-nerd.com
Thu Sep 18 05:14:47 PDT 2014


lvqcl wrote:

> Oops. It seems that vsnprintf_s isn't always available on MinGW platform:
> MinGW declares this function only if MINGW_HAS_SECURE_API macro is defined.
> That's because WinXP version of msvcrt.dll doesn't contain secure functions
> like vsnprintf_s.
> 
> Maybe it's better to revert vsnprintf_s to vsprintf or to use vnsprintf?

Ok, we need to drop vsnprintf_s to support WinXP. I'd prefer vsnprintf
over vsprintf but have no way of testing any of these options.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list