summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2013-01-25 09:57:09 +0100
committerPhilipp Hahn <hahn@univention.de>2013-01-28 11:04:28 +0100
commit1a4ed6d3fd4e85c31b60d532637f54b6fb3bffe7 (patch)
tree7d4b91ed586489856d0ced8277fee09686ffa3b2 /common
parent397089a207f3d35bfa51fc769e243eab9c3a186a (diff)
downloadxrdp-proprietary-1a4ed6d3fd4e85c31b60d532637f54b6fb3bffe7.tar.gz
xrdp-proprietary-1a4ed6d3fd4e85c31b60d532637f54b6fb3bffe7.zip
xrdp: Fix format string vulnerability
The the string being printer contains a "%", this could crash xrdp.
Diffstat (limited to 'common')
-rw-r--r--common/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/log.c b/common/log.c
index e8e005f0..d8279600 100644
--- a/common/log.c
+++ b/common/log.c
@@ -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