diff options
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index 64adb6268..d4c5ed697 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c | |||
@@ -463,7 +463,8 @@ core_disconnect (void *cls, | |||
463 | char own_id[16]; | 463 | char own_id[16]; |
464 | 464 | ||
465 | GCC_check_connections (); | 465 | GCC_check_connections (); |
466 | strncpy (own_id, GNUNET_i2s (&my_full_id), 15); | 466 | strncpy (own_id, GNUNET_i2s (&my_full_id), 16); |
467 | own_id[15] = '\0'; | ||
467 | p = GNUNET_CONTAINER_multipeermap_get (peers, peer); | 468 | p = GNUNET_CONTAINER_multipeermap_get (peers, peer); |
468 | if (NULL == p) | 469 | if (NULL == p) |
469 | { | 470 | { |