#ifdef PCI_USE_DNS
+/*
+ * Our definition of BYTE_ORDER confuses arpa/nameser_compat.h on
+ * Solaris so we must undef it before including arpa/nameser.h.
+ */
+#ifdef PCI_OS_SUNOS
+#undef BYTE_ORDER
+#endif
+
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
default:
return NULL;
}
- sprintf(dnsname, "%s.%s", name, domain);
+ sprintf(dnsname, "%.100s.%.100s", name, domain);
a->debug("Resolving %s\n", dnsname);
if (!resolver_inited)