Correct a typo in nlm_find_host_by_addr(): the intention of the

code is to give "<unknown>" rather than comparing the buffer
against it.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2014-03-11 00:25:55 +00:00
parent 8e41e26f65
commit 0bd8e9dcc4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262991

View file

@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct sockaddr *addr, int vers)
break;
#endif
default:
strcmp(tmp, "<unknown>");
strlcpy(tmp, "<unknown>", sizeof(tmp));
}