diff options
Diffstat (limited to 'addrtoname.c')
-rw-r--r-- | addrtoname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addrtoname.c b/addrtoname.c index 55937929..499a6648 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -172,7 +172,7 @@ win32_gethostbyaddr(const char *addr, int len, int type) hname, sizeof(hname), NULL, 0, 0)) { return NULL; } else { - strcpy(host.h_name, hname); + strlcpy(host.h_name, hname, NI_MAXHOST); return &host; } break; |