From e9db4462235ed2bdaf7fdc0b0c11b179913d0fba Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Sat, 13 Mar 2010 11:17:39 +0000 Subject: 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 --- contrib/top/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/top/utils.c b/contrib/top/utils.c index 906170ad67a3..a38b2178fcc2 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]; -- cgit v1.2.3