diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-24 13:49:02 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-24 13:49:02 +0100 |
commit | 2734e50bd15800eb70fcebc764aafbf7e4d54c0e (patch) | |
tree | 60ade7d585ba34949e445eaa957a441e84fae317 | |
parent | 4cbb6204392958db368e3250d79bf74b264480cc (diff) | |
download | gnutls-2734e50bd15800eb70fcebc764aafbf7e4d54c0e.tar.gz |
use correct type in snprintf.
-rw-r--r-- | lib/x509/ocsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/ocsp.c b/lib/x509/ocsp.c index 229a4376c2..9855352a48 100644 --- a/lib/x509/ocsp.c +++ b/lib/x509/ocsp.c @@ -1771,7 +1771,7 @@ gnutls_ocsp_resp_get_certs (gnutls_ocsp_resp_t resp, { char name[ASN1_MAX_NAME_SIZE]; - snprintf (name, sizeof (name), "certs.?%lu", ctr + 1); + snprintf (name, sizeof (name), "certs.?%u", (unsigned int)(ctr + 1)); ret = _gnutls_x509_der_encode (resp->basicresp, name, &c, 0); if (ret == GNUTLS_E_ASN1_ELEMENT_NOT_FOUND) break; |