From 2734e50bd15800eb70fcebc764aafbf7e4d54c0e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 24 Mar 2012 13:49:02 +0100 Subject: [PATCH] use correct type in snprintf. --- lib/x509/ocsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/x509/ocsp.c b/lib/x509/ocsp.c index 229a4376c..9855352a4 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; -- 2.11.4.GIT