1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 23:48:39 +00:00

Fix %m with MinGW

This commit is contained in:
Rosen Penev 2016-12-03 17:38:27 -08:00
parent f27675a0ec
commit 66d4eea649

View File

@ -56,7 +56,11 @@ void event_call (const u32 id, hashcat_ctx_t *hashcat_ctx, const void *buf, cons
__attribute__ ((format (printf, 1, 0)))
static int event_log (const char *fmt, va_list ap, char *s, const size_t sz)
{
#if defined (__MINGW32__)
return __mingw_vsnprintf (s, sz, fmt, ap);
#else
return vsnprintf (s, sz, fmt, ap);
#endif
}
size_t event_log_info_nn (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...)