Hi Tim,

thanks to have worked on this:

Tim Ruehsen <tim.rueh...@gmx.de> writes:

> diff --git a/src/iri.c b/src/iri.c
> index 6c6e8d3..354bfd9 100644
> --- a/src/iri.c
> +++ b/src/iri.c
> @@ -180,16 +180,10 @@ do_conversion (const char *tocode, const char 
> *fromcode, char const *in_org, siz
>          }
>        else if (errno == E2BIG) /* Output buffer full */
>          {
> -          char *new;
> -
>            tooshort++;
>            done = len;
> -          outlen = done + inlen * 2;
> -          new = xmalloc (outlen + 1);
> -          memcpy (new, s, done);
> -          xfree (s);
> -          s = new;
> -          len = outlen;
> +          len = outlen = done + inlen * 2;
> +          s = xrealloc(s, outlen + 1);

ACK with a space between "xrealloc" and '('  :-)

Regards,
Giuseppe


Reply via email to