diff options
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 866f4ab..56d52ea 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); |