Skip to content
Snippets Groups Projects
Commit 344b173c authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fixed handling of varargs in tiff warning handler

parent 88d76a0b
Branches
Tags
No related merge requests found
......@@ -34,9 +34,9 @@ void tiff_warning_handler(const char *mod, const char* fmt, va_list ap)
{
static char message[1024];
#ifdef _MSC_VER
_snprintf(message,1024,fmt,ap);
_vsnprintf(message,1024,fmt,ap);
#else
snprintf(message,1024,fmt,ap);
vsnprintf(message,1024,fmt,ap);
#endif
LOG_INFO(mod << ": " << message);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment