diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2012-07-12 16:58:00 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2012-07-12 16:58:00 +0200 |
| commit | 8d98f7fef6216da236a356ca654185fb03202236 (patch) | |
| tree | 4a7449e34a7800559691836c98c096b12408331a /src/libcharon/plugins/stroke | |
| parent | d15975c7f211614f1582e15bca3c1fcb746ea76a (diff) | |
| download | strongswan-8d98f7fef6216da236a356ca654185fb03202236.tar.bz2 strongswan-8d98f7fef6216da236a356ca654185fb03202236.tar.xz | |
Avoid that any % characters (e.g. in %any) are evaluated when logging via stroke
Diffstat (limited to 'src/libcharon/plugins/stroke')
| -rw-r--r-- | src/libcharon/plugins/stroke/stroke_control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_control.c b/src/libcharon/plugins/stroke/stroke_control.c index a083a1135..163a2a750 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) { |
