Author: delphij Date: Fri Jul 11 00:11:24 2014 New Revision: 268517 URL: http://svnweb.freebsd.org/changeset/base/268517
Log: MFC r267886: Use correct length for buffer. Submitted by: Sascha Wildner <swildner dragonflybsd org> Modified: stable/10/usr.bin/procstat/procstat_files.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.bin/procstat/procstat_files.c ============================================================================== --- stable/10/usr.bin/procstat/procstat_files.c Fri Jul 11 00:08:13 2014 (r268516) +++ stable/10/usr.bin/procstat/procstat_files.c Fri Jul 11 00:11:24 2014 (r268517) @@ -114,7 +114,7 @@ addr_to_string(struct sockaddr_storage * snprintf(buffer, buflen, "%s.%d", buffer2, ntohs(sin6->sin6_port)); else - strlcpy(buffer, "-", sizeof(buffer)); + strlcpy(buffer, "-", buflen); break; default: _______________________________________________ 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"