Fix LogCatcher
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 1 Nov 2018 07:51:46 +0000 (16:51 +0900)
committer장상윤/Tizen Platform Lab(SR)/Engineer/삼성전자 <jeremy.jang@samsung.com>
Thu, 1 Nov 2018 07:58:34 +0000 (16:58 +0900)
Fix format security error.

Change-Id: I921c172521048ea02f9ce450d3dc2b5a4db050b6
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/utils/logging.h

index e50aee6828ffd1e5a157d7848fc3dfb501bfa34d..d45fed26c39fb2a6aec7f95e8500db418a2d6023 100644 (file)
@@ -70,7 +70,7 @@ class LogCatcher {
     : level_(level), tag_(tag) { }
 
   void operator&(const StringStream<char>& str) const {
-    dlog_print(LogLevelToPriority(level_), tag_.c_str(),
+    dlog_print(LogLevelToPriority(level_), tag_.c_str(), "%s",
         Escape(str.str()).c_str());
   }