xrdp: Fix format string vulnerability

The the string being printer contains a "%", this could crash xrdp.
This commit is contained in:
Philipp Hahn 2013-01-25 09:57:09 +01:00
parent 397089a207
commit 1a4ed6d3fd

View File

@ -617,7 +617,7 @@ log_message(const enum logLevels lvl, const char *msg, ...)
if (lvl <= staticLogConfig->log_level)
{
/* log to console */
g_printf(buff);
g_printf("%s", buff);
/* log to application logfile */
#ifdef LOG_ENABLE_THREAD