Date: Fri, 11 Jul 2014 00:11:24 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r268517 - stable/10/usr.bin/procstat Message-ID: <201407110011.s6B0BOHK002795@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407110011.s6B0BOHK002795>