summaryrefslogtreecommitdiffstats
path: root/base/native-tools
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/native-tools
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/native-tools')
-rw-r--r--base/native-tools/src/tkstool/secutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/native-tools/src/tkstool/secutil.c b/base/native-tools/src/tkstool/secutil.c
index 9ece007fa..9cf2c37dc 100644
--- a/base/native-tools/src/tkstool/secutil.c
+++ b/base/native-tools/src/tkstool/secutil.c
@@ -1003,7 +1003,7 @@ secu_PrintTime(FILE *out, int64 time, char *m, int level)
}
PR_FormatTime(timeString, 100, "%a %b %d %H:%M:%S %Y", &printableTime);
- fprintf(out, timeString);
+ fprintf(out, "%s", timeString);
if (m != NULL)
fprintf(out, "\n");
@@ -2584,7 +2584,7 @@ SECU_PrintCRLInfo(FILE *out, CERTCrl *crl, char *m, int level)
iv = 0;
while ((entry = crl->entries[iv++]) != NULL) {
sprintf(om, "Entry (%x):\n", iv);
- SECU_Indent(out, level + 1); fprintf(out, om);
+ SECU_Indent(out, level + 1); fprintf(out, "%s", om);
SECU_PrintInteger(out, &(entry->serialNumber), "Serial Number",
level + 2);
SECU_PrintTimeChoice(out, &(entry->revocationDate),