summaryrefslogtreecommitdiffstats
path: root/base/tps/src/modules
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@redhat.com>2013-12-16 15:17:57 -0800
committerMatthew Harmsen <mharmsen@redhat.com>2013-12-18 17:33:14 -0800
commit3b7705f419782ea712577a5b06aa3f161f42b9c2 (patch)
tree9f96a7445afcadc727aac99a600fe6f7f4a9ed60 /base/tps/src/modules
parentcbfe95ec0b320713a3375e77975779d8acfaf5aa (diff)
downloadpki-3b7705f419782ea712577a5b06aa3f161f42b9c2.tar.gz
pki-3b7705f419782ea712577a5b06aa3f161f42b9c2.tar.xz
pki-3b7705f419782ea712577a5b06aa3f161f42b9c2.zip
Replace '-Wformat-security' warning with '-Werror=format-security' error
Bugzilla Bug #1037248 - pki-core FTBFS if "-Werror=format-security" flag is used Bugzilla Bug #1037249 - pki-tps FTBFS if "-Werror=format-security" flag is used
Diffstat (limited to 'base/tps/src/modules')
-rw-r--r--base/tps/src/modules/tps/AP_Context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/tps/src/modules/tps/AP_Context.cpp b/base/tps/src/modules/tps/AP_Context.cpp
index b7e0242fb..beb573390 100644
--- a/base/tps/src/modules/tps/AP_Context.cpp
+++ b/base/tps/src/modules/tps/AP_Context.cpp
@@ -55,7 +55,7 @@ void AP_Context::LogError( const char *func, int line, const char *fmt, ... )
PR_vsnprintf( buf, MAX_LOG_MSG_SIZE, fmt, argp );
va_end( argp );
- ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_ERR, 0, m_sv, buf );
+ ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_ERR, 0, m_sv, "%s", buf );
}
@@ -68,7 +68,7 @@ void AP_Context::LogInfo( const char *func, int line, const char *fmt, ... )
PR_vsnprintf( buf, MAX_LOG_MSG_SIZE, fmt, argp );
va_end( argp );
- ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_INFO, 0, m_sv, buf );
+ ap_log_error( func, line, APLOG_MODULE_INDEX, APLOG_INFO, 0, m_sv, "%s", buf );
}