Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 13:11:35 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Emmanuel Vadot <manu@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r324007 - head/usr.sbin/mountd
Message-ID:  <20170926131135.73b1f216e9448d863f7b48a9@bidouilliste.com>
In-Reply-To: <20170926102457.GG2271@kib.kiev.ua>
References:  <201709260918.v8Q9II14056929@repo.freebsd.org> <20170926102457.GG2271@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Sep 2017 13:24:57 +0300
Konstantin Belousov <kostikbel@gmail.com> wrote:

> 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.

 Right, done in 324012.

 Thanks,

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170926131135.73b1f216e9448d863f7b48a9>