summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
authordoug <>2014-10-03 06:02:38 +0000
committerdoug <>2014-10-03 06:02:38 +0000
commit079e384e3438a23d2ddc504f4d34e5a46d9dd6e8 (patch)
treeec58ae0912470726cdc0183e7bc10028ba918120 /src/lib/libcrypto/asn1
parent8b25549254bce5b7fc083b5930f89878aa04174f (diff)
downloadopenbsd-079e384e3438a23d2ddc504f4d34e5a46d9dd6e8.tar.gz
openbsd-079e384e3438a23d2ddc504f4d34e5a46d9dd6e8.tar.bz2
openbsd-079e384e3438a23d2ddc504f4d34e5a46d9dd6e8.zip
Use string literals in printf style calls so gcc's -Wformat works.
ok tedu@, miod@
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r--src/lib/libcrypto/asn1/asn1_par.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c
index f5e3a8b529..2c8062bb8a 100644
--- a/src/lib/libcrypto/asn1/asn1_par.c
+++ b/src/lib/libcrypto/asn1/asn1_par.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_par.c,v 1.20 2014/07/12 16:03:36 miod Exp $ */ 1/* $OpenBSD: asn1_par.c,v 1.21 2014/10/03 06:02:38 doug Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -71,7 +71,6 @@ static int
71asn1_print_info(BIO *bp, int tag, int xclass, int constructed, 71asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
72 int indent) 72 int indent)
73{ 73{
74 static const char fmt[] = "%-18s";
75 char str[128]; 74 char str[128];
76 const char *p; 75 const char *p;
77 76
@@ -95,7 +94,7 @@ asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
95 else 94 else
96 p = ASN1_tag2str(tag); 95 p = ASN1_tag2str(tag);
97 96
98 if (BIO_printf(bp, fmt, p) <= 0) 97 if (BIO_printf(bp, "%-18s", p) <= 0)
99 goto err; 98 goto err;
100 return (1); 99 return (1);
101err: 100err: