svn commit: r324007 - head/usr.sbin/mountd
Emmanuel Vadot
manu at bidouilliste.com
Tue Sep 26 11:11:45 UTC 2017
On Tue, 26 Sep 2017 13:24:57 +0300
Konstantin Belousov <kostikbel at 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 at bidouilliste.com> <manu at freebsd.org>
More information about the svn-src-all
mailing list