From 3b7705f419782ea712577a5b06aa3f161f42b9c2 Mon Sep 17 00:00:00 2001 From: Matthew Harmsen Date: Mon, 16 Dec 2013 15:17:57 -0800 Subject: 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 --- base/native-tools/src/tkstool/secutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/native-tools') 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), -- cgit