diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2016-11-03 10:02:24 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2016-11-03 10:02:24 +0100 |
commit | 514e2db5bc0c55d5c3606d4d96f005290d0c5e99 (patch) | |
tree | 8f121c781e337cba12a204e6300216ee0c33cb92 /Xtranssock.c | |
parent | a2919abcba9ad79a3908b6d316a632c4b8208285 (diff) | |
parent | 560d7550e23e9b14056b4a9b2569c2f256015f8a (diff) |
Merge remote-tracking branch 'origin/master' into obsd
Diffstat (limited to 'Xtranssock.c')
-rw-r--r-- | Xtranssock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xtranssock.c b/Xtranssock.c index 6aabadd..05b13df 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -517,7 +517,7 @@ TRANS(SocketReopen) (int i _X_UNUSED, int type, int fd, const char *port) addr->sa_len = addrlen; #endif addr->sa_family = AF_UNIX; -#ifdef HAS_STRLCPY +#if defined(HAVE_STRLCPY) || defined(HAS_STRLCPY) strlcpy(addr->sa_data, port, portlen); #else strncpy(addr->sa_data, port, portlen); |