Changeset 2e8523b for dcc.c


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
  • dcc.c

    r7801298 r2e8523b  
    9292        struct sockaddr_storage saddr;
    9393        char *errmsg;
    94         char host[HOST_NAME_MAX];
     94        char host[NI_MAXHOST];
    9595        char port[6];
    9696
Note: See TracChangeset for help on using the changeset viewer.