From f25beaa71c7252caa73e7ccc28f8c847e176cec2 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 28 Nov 2018 20:13:19 +0900 Subject: [PATCH] Fix LogCatcher Fix format security error. Change-Id: Ia52ac22072436d27978bf4ed4b0cf4ed61f1e513 Signed-off-by: Sangyoon Jang --- src/utils/logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/logging.h b/src/utils/logging.h index 491521c..23683bc 100644 --- a/src/utils/logging.h +++ b/src/utils/logging.h @@ -70,7 +70,7 @@ class LogCatcher { : level_(level), tag_(tag) { } void operator&(const StringStream& str) const { - dlog_print(LogLevelToPriority(level_), tag_.c_str(), + dlog_print(LogLevelToPriority(level_), tag_.c_str(), "%s", Escape(str.str()).c_str()); } -- 2.34.1