Date: Tue, 26 Sep 2017 13:24:57 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Emmanuel Vadot <manu@FreeBSD.org> Cc: 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: <20170926102457.GG2271@kib.kiev.ua> In-Reply-To: <201709260918.v8Q9II14056929@repo.freebsd.org> References: <201709260918.v8Q9II14056929@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170926102457.GG2271>