Changeset 2e8523b for protocols


Ignore:
Timestamp:
2016-12-31T20:40:09Z (8 years ago)
Author:
dx <dx@…>
Branches:
master
Children:
188b75e, 8768f67
Parents:
7801298
git-author:
Jelmer Vernooij <jelmer@…> (28-12-16 13:50:14)
git-committer:
dx <dx@…> (31-12-16 20:40:09)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/s5bytestream.c

    r7801298 r2e8523b  
    888888        char *proxy, *next, *errmsg = NULL;
    889889        char port[6];
    890         char host[HOST_NAME_MAX + 1];
     890        char host[NI_MAXHOST + 1];
    891891        jabber_streamhost_t *sh, *sh2;
    892892        GSList *streamhosts = jd->streamhosts;
Note: See TracChangeset for help on using the changeset viewer.