summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2014-12-08 03:54:20 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2014-12-08 03:54:20 +0000
commitab7a38a8ddc67c0fa3fb778517ecb6aac7376e21 (patch)
tree2cd08243a0f16f35e97e83b5b1d2bf85e08639e8 /lib
parent88b862822f2e48b4c44b3ba6109a67f4e740f42b (diff)
Use platform-defined method of printing a pointer.
Casting a pointer to an unsigned long discards bits on an LLP64 system. ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/bio/bio_cb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/bio/bio_cb.c b/lib/libssl/src/crypto/bio/bio_cb.c
index 7d1f0254527..ab0e3a92cee 100644
--- a/lib/libssl/src/crypto/bio/bio_cb.c
+++ b/lib/libssl/src/crypto/bio/bio_cb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bio_cb.c,v 1.15 2014/07/11 08:44:47 jsing Exp $ */
+/* $OpenBSD: bio_cb.c,v 1.16 2014/12/08 03:54:19 bcook Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -76,7 +76,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl,
if (BIO_CB_RETURN & cmd)
r = ret;
- snprintf(buf, sizeof buf, "BIO[%08lX]:", (unsigned long)bio);
+ snprintf(buf, sizeof buf, "BIO[%p]:", bio);
p = &(buf[14]);
p_maxlen = sizeof buf - 14;
switch (cmd) {