From 2a14509d20a0104abef984f64abe55142e731020 Mon Sep 17 00:00:00 2001 From: delphij Date: Tue, 11 Mar 2014 00:25:55 +0000 Subject: Correct a typo in nlm_find_host_by_addr(): the intention of the code is to give "" rather than comparing the buffer against it. MFC after: 2 weeks --- sys/nlm/nlm_prot_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c index 387b009..74fae87 100644 --- a/sys/nlm/nlm_prot_impl.c +++ b/sys/nlm/nlm_prot_impl.c @@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct sockaddr *addr, int vers) break; #endif default: - strcmp(tmp, ""); + strlcpy(tmp, "", sizeof(tmp)); } -- cgit v1.1