aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2016-12-28 13:50:14 +0000
committerdx <dx@dxzone.com.ar>2016-12-31 17:40:09 -0300
commit2e8523b30bafa86685655001457a2615936b646a (patch)
tree4e0c9c6509d1b3aeca395bc17e258f4a38b48325 /protocols
parent7801298f6a855cda0c62433d45ec717d2773ef73 (diff)
Use NI_MAXHOST rather than HOST_NAME_MAX for host lengths.
This constant is always available and meant to be used with getnameinfo(). This fixes the build on Debian GNU/kFreeBSD.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/jabber/s5bytestream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/s5bytestream.c b/protocols/jabber/s5bytestream.c
index 9c79de8e..7380d565 100644
--- a/protocols/jabber/s5bytestream.c
+++ b/protocols/jabber/s5bytestream.c
@@ -887,7 +887,7 @@ void jabber_si_set_proxies(struct bs_transfer *bt)
char *proxysetting = g_strdup(set_getstr(&tf->ic->acc->set, "proxy"));
char *proxy, *next, *errmsg = NULL;
char port[6];
- char host[HOST_NAME_MAX + 1];
+ char host[NI_MAXHOST + 1];
jabber_streamhost_t *sh, *sh2;
GSList *streamhosts = jd->streamhosts;