aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-18 19:01:51 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-18 19:01:51 +0000
commit8ca7ed7cd3358c53425c1e5a572b4abd2f6c1392 (patch)
tree879c27c6834bcf7cc475237161d2c3c1713c3f2b
parent2e85825b85b733c2ada5bdf9a70ca70b130536e6 (diff)
downloadgnunet-8ca7ed7cd3358c53425c1e5a572b4abd2f6c1392.tar.gz
gnunet-8ca7ed7cd3358c53425c1e5a572b4abd2f6c1392.zip
-we use 4 chars, not 8 for pIDs
-rw-r--r--src/core/gnunet-service-core_kx.c16
1 files 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,
1058 &GSC_my_identity, 1058 &GSC_my_identity,
1059 sizeof (struct GNUNET_PeerIdentity))) 1059 sizeof (struct GNUNET_PeerIdentity)))
1060 { 1060 {
1061 char sender[9]; 1061 char sender[5];
1062 char peer[9]; 1062 char peer[5];
1063 1063
1064 GNUNET_snprintf (sender, sizeof (sender), "%8s", GNUNET_i2s (&kx->peer)); 1064 GNUNET_snprintf (sender,
1065 GNUNET_snprintf (peer, sizeof (peer), "%8s", GNUNET_i2s (&t.target)); 1065 sizeof (sender),
1066 "%4s",
1067 GNUNET_i2s (&kx->peer));
1068 GNUNET_snprintf (peer,
1069 sizeof (peer),
1070 "%4s",
1071 GNUNET_i2s (&t.target));
1066 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1072 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1067 _("Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n"), 1073 _("Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n"),
1068 sender, 1074 sender,