Avoid that any % characters (e.g. in %any) are evaluated when logging via stroke

This commit is contained in:
Tobias Brunner
2012-07-12 16:58:00 +02:00
parent d15975c7f2
commit 8d98f7fef6
@@ -62,7 +62,7 @@ static bool stroke_log(stroke_log_info_t *info, debug_t group, level_t level,
{
if (level <= info->level)
{
if (fprintf(info->out, message) < 0 ||
if (fprintf(info->out, "%s", message) < 0 ||
fprintf(info->out, "\n") < 0 ||
fflush(info->out) != 0)
{