From 13505dcb5573e256fd14daf97afefb8b9a7c6263 Mon Sep 17 00:00:00 2001 From: Rikard Falkeborn Date: Sun, 6 May 2018 19:44:03 +0200 Subject: examples: Fix format specifiers Closes #2561 --- docs/examples/sessioninfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/sessioninfo.c') diff --git a/docs/examples/sessioninfo.c b/docs/examples/sessioninfo.c index 024a0e12d..86a813a04 100644 --- a/docs/examples/sessioninfo.c +++ b/docs/examples/sessioninfo.c @@ -63,7 +63,7 @@ static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream) gnutls_x509_crt_import(cert, &chainp[i], GNUTLS_X509_FMT_DER)) { if(GNUTLS_E_SUCCESS == gnutls_x509_crt_print(cert, GNUTLS_CRT_PRINT_FULL, &dn)) { - fprintf(stderr, "Certificate #%d: %.*s", i, dn.size, dn.data); + fprintf(stderr, "Certificate #%u: %.*s", i, dn.size, dn.data); gnutls_free(dn.data); } -- cgit v1.2.3