svn commit: r262991 - head/sys/nlm
Xin LI
delphij at FreeBSD.org
Tue Mar 11 00:25:55 UTC 2014
Author: delphij
Date: Tue Mar 11 00:25:55 2014
New Revision: 262991
URL: http://svnweb.freebsd.org/changeset/base/262991
Log:
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
Modified:
head/sys/nlm/nlm_prot_impl.c
Modified: head/sys/nlm/nlm_prot_impl.c
==============================================================================
--- head/sys/nlm/nlm_prot_impl.c Tue Mar 11 00:23:50 2014 (r262990)
+++ head/sys/nlm/nlm_prot_impl.c Tue Mar 11 00:25:55 2014 (r262991)
@@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct socka
break;
#endif
default:
- strcmp(tmp, "<unknown>");
+ strlcpy(tmp, "<unknown>", sizeof(tmp));
}
More information about the svn-src-all
mailing list