On Wed, May 02, 2018 at 11:00:20AM -0600, Jeff Law wrote:
> +             escaped = (char *) xmalloc (len * 2 + 1);
> I believe that generally we want a slower growth pattern.  You'll find
> that we regularly do something like len * 3 / 2 + 1.  Seems wise here too.

We don't want to use xmalloc in these cases, but XNEWVEC (char, ...).

        Jakub

Reply via email to