rem: snprintf(buf, sizeof(buf), "%s %hu", host->addrs[0], port);
add: p += snprintf(p, sizeof(buf) + buf - p, "any address");  p += snprintf(p, sizeof(buf) + buf - p, " %s", port->ascnum); if (port->name[0]) p += snprintf(p, sizeof(buf) + buf - p, " (%s)", port->name);
context: const char *netcat_strid(const nc_host_t *host, unsigned short port){  static char buf[MAXHOSTNAMELEN + NETCAT_ADDRSTRLEN + 10];  /* FIXME: this should use the portnames also */  /* FIXME: this is broken, cause they fill in (unknown) */  if (host->name[0])    snprintf(buf, sizeof(buf), "%s [%s] %hu", host->name, host->addrs[0], port);  else    snprintf(buf, sizeof(buf), "%s %hu", host->addrs[0], port);  return buf;}