From f6fe072836750a4e8c5202baf167534df052a898 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 22 Nov 2015 14:16:09 +0000 Subject: px5g-standalone: activate format-security checks Signed-off-by: Hauke Mehrtens SVN-Revision: 47583 --- package/utils/px5g-standalone/src/library/x509write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package/utils/px5g-standalone/src') diff --git a/package/utils/px5g-standalone/src/library/x509write.c b/package/utils/px5g-standalone/src/library/x509write.c index 1091568745..2b0eb71563 100644 --- a/package/utils/px5g-standalone/src/library/x509write.c +++ b/package/utils/px5g-standalone/src/library/x509write.c @@ -570,7 +570,7 @@ static int x509write_file(x509_node *node, char *path, int format, break; case X509_OUTPUT_PEM: - if (fprintf(ofstream,pem_prolog)<0) { + if (fprintf(ofstream, "%s", pem_prolog)<0) { is_err = -1; break; } @@ -589,7 +589,7 @@ static int x509write_file(x509_node *node, char *path, int format, fprintf(ofstream,"%.64s\n",&base_buf[i]); } - if (fprintf(ofstream, pem_epilog)<0) { + if (fprintf(ofstream, "%s", pem_epilog)<0) { is_err = -1; break; } -- cgit v1.2.3