miscellaneous: fixed current misspell-check's findings
Reference(s): https://github.com/lyda/misspell-check Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
committed by
Jaromir Capik
parent
fe75e26ab6
commit
fac3b34ff9
2
w.c
2
w.c
@@ -198,7 +198,7 @@ static void print_from(const utmp_t *restrict const u, const int ip_addresses, c
|
||||
if (!inet_ntop(AF_INET6, &ut_addr_v6, buf_ipv6, sizeof(buf_ipv6))) {
|
||||
strcpy(buf, ""); /* invalid address, clean the buffer */
|
||||
} else {
|
||||
strncpy(buf, buf_ipv6, fromlen); /* adress valid, copy to buffer */
|
||||
strncpy(buf, buf_ipv6, fromlen); /* address valid, copy to buffer */
|
||||
}
|
||||
} else {
|
||||
/* IPv4 */
|
||||
|
Reference in New Issue
Block a user