From fcec4940724f37987fb1c7fa15d7ec54501c68eb Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Tue, 10 May 2005 11:57:19 +0000 Subject: [PATCH] use 'p' as conversion specifier for printf to avoid truncation of pointers on 64 bit platforms. Patch supplied by Daniel Gryniewicz via Mike Frysinger . PR: 1064 --- ssl/ssltest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 9e39325d94..808ee6e862 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -1929,8 +1929,8 @@ static int MS_CALLBACK app_verify_callback(X509_STORE_CTX *ctx, void *arg) fprintf(stderr, "In app_verify_callback, allowing cert. "); fprintf(stderr, "Arg is: %s\n", cb_arg->string); - fprintf(stderr, "Finished printing do we have a context? 0x%x a cert? 0x%x\n", - (unsigned int)ctx, (unsigned int)ctx->cert); + fprintf(stderr, "Finished printing do we have a context? 0x%p a cert? 0x%p\n", + ctx, ctx->cert); if (ctx->cert) s=X509_NAME_oneline(X509_get_subject_name(ctx->cert),buf,256); if (s != NULL) -- 2.25.1