Author: delphij
Date: Mon Jan  9 07:36:31 2017
New Revision: 311762
URL: https://svnweb.freebsd.org/changeset/base/311762

Log:
  Fix typo.
  
  MFC after:    3 days

Modified:
  head/usr.bin/netstat/route.c

Modified: head/usr.bin/netstat/route.c
==============================================================================
--- head/usr.bin/netstat/route.c        Mon Jan  9 06:36:17 2017        
(r311761)
+++ head/usr.bin/netstat/route.c        Mon Jan  9 07:36:31 2017        
(r311762)
@@ -496,7 +496,7 @@ fmt_sockaddr(struct sockaddr *sa, struct
                cq = buf;
                slim =  sa->sa_len + (u_char *) sa;
                cqlim = cq + sizeof(buf) - sizeof(" ffff");
-               snprintf(cq, sizeof(cq), "(%d)", sa->sa_family);
+               snprintf(cq, sizeof(buf), "(%d)", sa->sa_family);
                cq += strlen(cq);
                while (s < slim && cq < cqlim) {
                        snprintf(cq, sizeof(" ff"), " %02x", *s++);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to