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:
delphij 2014-03-11 00:25:55 +00:00
parent b01107b750
commit 2a14509d20

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));
}