summaryrefslogtreecommitdiffstats
path: root/sys/nlm
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-03-11 00:25:55 +0000
committerdelphij <delphij@FreeBSD.org>2014-03-11 00:25:55 +0000
commit2a14509d20a0104abef984f64abe55142e731020 (patch)
treea9388523f68a9e265d83fb0dbab7fd733f6af1b4 /sys/nlm
parentb01107b7508e11bb504e828c023ccb1d123689ef (diff)
downloadFreeBSD-src-2a14509d20a0104abef984f64abe55142e731020.zip
FreeBSD-src-2a14509d20a0104abef984f64abe55142e731020.tar.gz
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
Diffstat (limited to 'sys/nlm')
-rw-r--r--sys/nlm/nlm_prot_impl.c2
1 files changed, 1 insertions, 1 deletions
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, "<unknown>");
+ strlcpy(tmp, "<unknown>", sizeof(tmp));
}
OpenPOWER on IntegriCloud