svn commit: r243262 - head/usr.bin/top

Alexey Dokuchaev danfe at FreeBSD.org
Mon Nov 19 08:26:19 UTC 2012


On Mon, Nov 19, 2012 at 08:03:40AM +0000, Rui Paulo wrote:
> New Revision: 243262
> URL: http://svnweb.freebsd.org/changeset/base/243262
>  
> -	cmdbuf = (char *)malloc(cmdlengthdelta + 1);
> +	cmdbuf = (char *)malloc(cmdlen + 1);

Why explicitly casting malloc return() value (void *)?

./danfe


More information about the svn-src-all mailing list