Commit cf99d6a1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_getipnum): Fixed typo: strncpy was spelled "strncopy".

parent 86f43e4c
......@@ -209,14 +209,14 @@ char *isc_getipnum(IscAddress *ia, char *buf, int len)
buf,
len));
#else
strncopy(buf,
CHOOSE_IP4OR6(ia->ip.saddr,
inet_ntoa(ia->ip.saddr.sa_in.sin_addr),
IN6_IS_ADDR_V4MAPPED(&ia->ip.saddr.sa_in6.sin6_addr)
? inet_ntoa((struct in_addr *)
&ia->ip.saddr.sa_in6.sin6_addr.s6_addr[12])
: ""),
len-1);
strncpy(buf,
CHOOSE_IP4OR6(ia->ip.saddr,
inet_ntoa(ia->ip.saddr.sa_in.sin_addr),
IN6_IS_ADDR_V4MAPPED(&ia->ip.saddr.sa_in6.sin6_addr)
? inet_ntoa((struct in_addr *)
&ia->ip.saddr.sa_in6.sin6_addr.s6_addr[12])
: ""),
len-1);
#endif
buf[len-1] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment