summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-10 22:09:51 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2016-09-10 22:11:04 -0700
commit560d7550e23e9b14056b4a9b2569c2f256015f8a (patch)
treebeb8debbef35e70ddb7efc0d958ecba335d339ce
parent2e4c338eda8ec6996b7bacc1d0c7dfe7de925864 (diff)
Update strlcpy macro check to also check HAVE_STRLCPY
xorg-server moved from HAS_STRLCPY to HAVE_STRLCPY in 2011 cf-xserver: d829a7c5cb42c979b58f3547136df5b05d906423 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--Xtranssock.c2
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);