Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rp/link-curl-before-ssl'
[gitweb.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index d3283b8a4f3e8ed8451e723ce8b39d468aaa3dd3..108f5ab60e0ab122f0a86612ba9e4875ded29f26 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-333,7
+333,7
@@
static const char *ai_name(const struct addrinfo *ai)
static char addr[NI_MAXHOST];
if (getnameinfo(ai->ai_addr, ai->ai_addrlen, addr, sizeof(addr), NULL, 0,
NI_NUMERICHOST) != 0)
-
strcpy(addr
, "(unknown)");
+
xsnprintf(addr, sizeof(addr)
, "(unknown)");
return addr;
}