On Tue, 14 Jul 2015 17:52:52 +0200, Gregor Best wrote:

Comments inline:

> Index: misc.c
> ===================================================================
> RCS file: /mnt/media/cvs/src/usr.bin/find/misc.c,v
> retrieving revision 1.12
> diff -u -p -u -r1.12 misc.c
> --- misc.c    18 May 2014 08:10:00 -0000      1.12
> +++ misc.c    14 Jul 2015 15:41:20 -0000
> @@ -66,6 +66,7 @@ brace_subst(char *orig, char **store, ch
>                               if (!(newstore = realloc(*store, newlen)))
>                                       err(1, NULL);
>                               *store = newstore;
> +                             p = newstore;

Shouldn't this be:

                                p = (p - *store) + newstore;

>                               len = newlen;
>                       }
>                       memmove(p, path, plen);
> 

Reply via email to