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.
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to