From 8ca7ed7cd3358c53425c1e5a572b4abd2f6c1392 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Oct 2015 19:01:51 +0000 Subject: [PATCH] -we use 4 chars, not 8 for pIDs --- src/core/gnunet-service-core_kx.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 5e3864dcc..931125a97 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c @@ -1058,11 +1058,17 @@ GSC_KX_handle_ping (struct GSC_KeyExchangeInfo *kx, &GSC_my_identity, sizeof (struct GNUNET_PeerIdentity))) { - char sender[9]; - char peer[9]; - - GNUNET_snprintf (sender, sizeof (sender), "%8s", GNUNET_i2s (&kx->peer)); - GNUNET_snprintf (peer, sizeof (peer), "%8s", GNUNET_i2s (&t.target)); + char sender[5]; + char peer[5]; + + GNUNET_snprintf (sender, + sizeof (sender), + "%4s", + GNUNET_i2s (&kx->peer)); + GNUNET_snprintf (peer, + sizeof (peer), + "%4s", + GNUNET_i2s (&t.target)); GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n"), sender, -- 2.25.1