svn commit: r324007 - head/usr.sbin/mountd

Konstantin Belousov kostikbel at gmail.com
Tue Sep 26 10:25:06 UTC 2017


On Tue, Sep 26, 2017 at 09:18:18AM +0000, Emmanuel Vadot wrote:
> @@ -1940,14 +1936,16 @@ add_expdir(struct dirlist **dpp, char *cp, int len)
>  {
>  	struct dirlist *dp;
>  
> -	dp = (struct dirlist *)malloc(sizeof (struct dirlist) + len);
> +	dp = (struct dirlist *)malloc(sizeof (struct dirlist));
You might remove the unneeded cast as well.


More information about the svn-src-all mailing list