summaryrefslogtreecommitdiff
path: root/Xtranssock.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xtranssock.c')
-rw-r--r--Xtranssock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xtranssock.c b/Xtranssock.c
index 52f9aa1..33f0290 100644
--- a/Xtranssock.c
+++ b/Xtranssock.c
@@ -582,7 +582,7 @@ TRANS(SocketReopen) (int i, int type, int fd, char *port)
addr->sa_len = portlen + 1;
#endif
addr->sa_family = AF_UNIX;
-#ifdef HAVE_STRLCPY
+#ifdef HAS_STRLCPY
strlcpy(addr->sa_data, port, portlen);
#else
strncpy(addr->sa_data, port, portlen);