svn commit: r205119 - head/contrib/top

Giovanni Trematerra giovanni.trematerra at gmail.com
Tue Mar 30 16:09:42 UTC 2010


On Sat, Mar 13, 2010 at 1:17 PM, Bruce Cran <brucec at freebsd.org> wrote:
> 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];

While here wouldn't be good thing to ansify the function?


More information about the svn-src-all mailing list