From: Tobias Brunner Date: Thu, 12 Jul 2012 14:58:00 +0000 (+0200) Subject: Avoid that any % characters (e.g. in %any) are evaluated when logging via stroke X-Git-Tag: 5.0.1~407 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=8d98f7fef6216da236a356ca654185fb03202236;hp=d15975c7f211614f1582e15bca3c1fcb746ea76a Avoid that any % characters (e.g. in %any) are evaluated when logging via stroke --- diff --git a/src/libcharon/plugins/stroke/stroke_control.c b/src/libcharon/plugins/stroke/stroke_control.c index a083a11..163a2a7 100644 --- a/src/libcharon/plugins/stroke/stroke_control.c +++ b/src/libcharon/plugins/stroke/stroke_control.c @@ -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) {