diff options
| author | doug <> | 2014-10-03 06:02:38 +0000 |
|---|---|---|
| committer | doug <> | 2014-10-03 06:02:38 +0000 |
| commit | 3e3e62d53cc575a61b99b211f05e78229c836866 (patch) | |
| tree | ec58ae0912470726cdc0183e7bc10028ba918120 /src/lib/libcrypto/asn1 | |
| parent | 5c4f8fe197137c0784586b3b77127cf303a6e28e (diff) | |
| download | openbsd-3e3e62d53cc575a61b99b211f05e78229c836866.tar.gz openbsd-3e3e62d53cc575a61b99b211f05e78229c836866.tar.bz2 openbsd-3e3e62d53cc575a61b99b211f05e78229c836866.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.c | 5 |
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 | |||
| 71 | asn1_print_info(BIO *bp, int tag, int xclass, int constructed, | 71 | asn1_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); |
| 101 | err: | 100 | err: |
