Date: Tue, 11 Mar 2014 00:25:55 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262991 - head/sys/nlm Message-ID: <201403110025.s2B0Ptdw052513@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403110025.s2B0Ptdw052513>