Author: brucec Date: Sat Mar 13 11:17:39 2010 New Revision: 205119 URL: http://svn.freebsd.org/changeset/base/205119
Log: Change the 'amt' parameter in format_k2 from int to unsigned long long to match the values passed in and prevent the SIZE field being corrupted when more than 2TB is allocated. PR: bin/129706 Approved by: rrs (mentor) MFC after: 1 week Modified: head/contrib/top/utils.c Modified: head/contrib/top/utils.c ============================================================================== --- head/contrib/top/utils.c Sat Mar 13 11:08:57 2010 (r205118) +++ head/contrib/top/utils.c Sat Mar 13 11:17:39 2010 (r205119) @@ -476,7 +476,7 @@ int amt; char *format_k2(amt) -int amt; +unsigned long long amt; { static char retarray[NUM_STRINGS][16]; _______________________________________________ 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"