Author: delphij
Date: Wed Mar 26 23:57:09 2014
New Revision: 263781
URL: http://svnweb.freebsd.org/changeset/base/263781

Log:
  MFC r262991:
  
  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.

Modified:
  stable/10/sys/nlm/nlm_prot_impl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/nlm/nlm_prot_impl.c
==============================================================================
--- stable/10/sys/nlm/nlm_prot_impl.c   Wed Mar 26 23:34:27 2014        
(r263780)
+++ stable/10/sys/nlm/nlm_prot_impl.c   Wed Mar 26 23:57:09 2014        
(r263781)
@@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct socka
                break;
 #endif
        default:
-               strcmp(tmp, "<unknown>");
+               strlcpy(tmp, "<unknown>", sizeof(tmp));
        }
 
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to