- GNUNET_asprintf (&s,
- "%s %s",
- old,
- GNUNET_i2s (GCP_get_id (GCPP_get_peer_at_offset (path,
- i))));
- GNUNET_free_non_null (old);
- old = s;
+ if ( (path->entries_length > max_plen) &&
+ (i == max_plen / 2) )
+ off += GNUNET_snprintf (&buf[off],
+ sizeof (buf) - off,
+ "... ");
+ if ( (path->entries_length > max_plen) &&
+ (i > max_plen / 2) &&
+ (i < path->entries_length - max_plen / 2) )
+ continue;
+ off += GNUNET_snprintf (&buf[off],
+ sizeof (buf) - off,
+ "%s ",
+ GNUNET_i2s (GCP_get_id (GCPP_get_peer_at_offset (path,
+ i))));