http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945
--- Comment #10 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-02 16:45:26 UTC --- (In reply to comment #9) > It seems that MinGW has its own implementation of snprintf called > __mingw_snprintf [...] __mingw_snprintf has the desired behaviour >From libgfortran/libgfortran.h: #if HAVE_MINGW_SNPRINTF extern int __mingw_snprintf (char *, size_t, const char *, ...) __attribute__ ((format (gnu_printf, 3, 4))); #undef snprintf #define snprintf __mingw_snprintf #endif That should take care of it - but seemingly it does not.