Date: Tue, 20 Apr 2010 20:19:19 +0000 (UTC) From: Bruce Cran <brucec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r206911 - stable/8/contrib/top Message-ID: <201004202019.o3KKJJih033338@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brucec Date: Tue Apr 20 20:19:19 2010 New Revision: 206911 URL: http://svn.freebsd.org/changeset/base/206911 Log: MFC r205119 and r206056: Prevent the SIZE field being corrupted when a process allocates more than 2TB. PR: bin/129706 Submitted by: brucec Approved by: rrs (mentor) Modified: stable/8/contrib/top/utils.c stable/8/contrib/top/utils.h Directory Properties: stable/8/contrib/top/ (props changed) stable/8/contrib/top/install-sh (props changed) Modified: stable/8/contrib/top/utils.c ============================================================================== --- stable/8/contrib/top/utils.c Tue Apr 20 20:09:45 2010 (r206910) +++ stable/8/contrib/top/utils.c Tue Apr 20 20:19:19 2010 (r206911) @@ -476,7 +476,7 @@ int amt; char *format_k2(amt) -int amt; +unsigned long long amt; { static char retarray[NUM_STRINGS][16]; Modified: stable/8/contrib/top/utils.h ============================================================================== --- stable/8/contrib/top/utils.h Tue Apr 20 20:09:45 2010 (r206910) +++ stable/8/contrib/top/utils.h Tue Apr 20 20:19:19 2010 (r206911) @@ -21,4 +21,4 @@ long percentages(); char *errmsg(); char *format_time(); char *format_k(); -char *format_k2(); +char *format_k2(unsigned long long);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004202019.o3KKJJih033338>