diff options
author | brucec <brucec@FreeBSD.org> | 2010-03-13 11:17:39 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2010-03-13 11:17:39 +0000 |
commit | 9d0c668a1400c6b3f9488d68f93c0377417c07d5 (patch) | |
tree | 74802997b83067b10303cbd607b49281aa91e321 /contrib/top | |
parent | 6f18e2a4a4bac6ff62d96c06e3a3dc5d8a7ff2ec (diff) | |
download | FreeBSD-src-9d0c668a1400c6b3f9488d68f93c0377417c07d5.zip FreeBSD-src-9d0c668a1400c6b3f9488d68f93c0377417c07d5.tar.gz |
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
Diffstat (limited to 'contrib/top')
-rw-r--r-- | contrib/top/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/top/utils.c b/contrib/top/utils.c index 906170a..a38b2178 100644 --- a/contrib/top/utils.c +++ b/contrib/top/utils.c @@ -476,7 +476,7 @@ int amt; char *format_k2(amt) -int amt; +unsigned long long amt; { static char retarray[NUM_STRINGS][16]; |